• AntonyL

    (@antonyl)


    Hi Xnau,

    I have noticed some issues with Date type fields.

    Issue 1) When saving from a [pdb_record] page, sometimes the dates will become blank. If the page is then edited further, the dates seem to be stored as NULL.

    Issue 2) When opening a record for editing via the Dashboard (clicking on the edit icon on the List Participants page), sometimes the dates are set to the day previous to the one entered. If the data is then submitted, the decremented date is stored.

    Both of these behaviours have been observed under IE 11 and Chrome 46.0.2490.86.

    https://www.ads-software.com/plugins/participants-database/

Viewing 2 replies - 16 through 17 (of 17 total)
  • I’ve done the modification but still get the incorrect date. When checking with phpMyAdmin the flat data in my database the dates are correct. When checking with the admin list-participants, or directly via the frontend I’m getting dates -1.

    Plugin Author xnau webdesign

    (@xnau)

    Finally got this bug. What was happening is sometimes the timezone setting was dropped before the date was formatted. The fix is to re-set the timezone just before formatting the date. The specific change is this:

    in the plugin file classes/PDb_FormElement.php on line 519, find:

    return date_i18n( $format, $timestamp );

    add a line just before that so it looks like this:

    date_default_timezone_set( get_option( 'timezone_string' ) );
    return date_i18n( $format, $timestamp );
Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Dates decrementing unexpectedly.’ is closed to new replies.