Date field reverts to today

Discussion in 'Standard Support' started by nfg, Feb 20, 2012.

  1. nfg New Member

    Level: Community
    Hi,
    I have been battling with this one for a while now.
    No amount of configuration or even complete removal and replacement of the date field seems to have any effect.

    Basically the javascript for the date field appears to reset it to todays date on submit. The element is completely default.

    Formatting
    • Store Date AsUTC
    • Default to current date No
    • Always return todays date No
    Running Joomla 2.5, apache, php 5.2.17
    The table is a custom table.
    The field in the table is a datetime identical to fabrik's date_time field.
    The table gets populated as expected except that the value has been changed to today. I can see this happen when I hit the submit button.
    There are no validations or .js running on this element outside of what fabrik provides

    Thanks for any help you can offer.

    [IMG]
  2. troester Well-Known Member

    Level: Standard
    Which fabrik version?
    Did you update with GitHub?
  3. nfg New Member

    Level: Community
    Yeah that's a handy bit of info I forgot.

    My version is 3.0.3 Installed from the zip downloaded from here.
  4. rob Administrator

    Level: Community
    try updating from github - there has been considerable work on the date element recently
  5. nfg New Member

    Level: Community
    That does appear to have fixed it, thanks for that.
    All appears to be moving smoothly.
    Will remember the rep at github in future.

    Is that considered to be stable code there on github?
  6. rob Administrator

    Level: Community
    well its bug fixes from the last zip release, with no real experimental code going into it.

    Anything major we make a branch for. You can see at the moment Im working on a branch called 'strict' which is replacing some deprecated calls and formatting code to the new Joomla frame work coding standards etc, but as its a big job Im doing that outside of the 'master' branch

    Once we are happy with the state of the branch we merge it back into master.
  7. hjkok50 New Member

    Level: Community
    Apparently you fixed a problem that I also have with dates. I'm new to Fabrik and sofar I like it a lot !!. Could you tell me what fix I have to take from github and how I should fix it.
    thanks a lot
  8. troester Well-Known Member

    Level: Standard
  9. hjkok50 New Member

    Level: Community
    Thanks for the fast response.
    I did read all the instrutions and installed the latest version from Github, but it doesn't solve the problem.

    Any suggestions on how to proceed from here?
  10. troester Well-Known Member

    Level: Standard
    What are your date element settings and what is your problem?
  11. hjkok50 New Member

    Level: Community
    I created a list with Fabrik that contains two date fields.
    the settings for both fields are as follows:

    Plug-in: date
    Store Date as: UTC
    Default to current date: no
    Always return today's date: no
    First weekday: Sunday
    Allow typing in field: yes
    Show time selector: no

    And no validation functionality added.


    I installed Fabrik 3.0.3 and added Fabrik-fabrik-3.0.3-240 from github.

    I am using: XAMP 1.7.7 with PHP5.3.8 and MySQL5.5.16


    the problem: on SAVE in the Fabrik form, both date fields are reset to their original value or set to now() when empty
  12. troester Well-Known Member

    Level: Standard
    I can't replicate this.
    What are your access settings for the date elements? (if you want to change the date you'll need edit access)
  13. troester Well-Known Member

    Level: Standard
    I can't replicate this.
    What are your access settings for the date elements? (if you want to change the date you'll need edit access)
  14. hjkok50 New Member

    Level: Community
    Thanks, for all good help.
    The problem is solved by installing Fabrik 3.0.4. !!

Share This Page