• Following my updating from WordPress 4.7 to 5.2 a strange thing happened to my date fields. All the values were decremented by on exact day. For example, 1949-08-27 became 1949-08-26.

    Is there an easy way to programmatically add one day to my date of birth field?

    Thank you,

    Jacques

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    I suggest you go to your WP general settings and check the timezone setting and re-save it. WP changed the way the timezone is saved and it can cause problems with Participants Database.

    Thread Starter baillarg

    (@baillarg)

    Hi,

    I had already read your article “Date Shifting and Other Timezone-related Issues in Participants Database” and modified my setting.

    I am currently using a WordPress Timezone = “Toronto” and have checked the advanced setting so that the php timezone will be set to the WordPress timezone.

    With this setup, the date fields for any new record created in the Participant Database are OK but i am left with the date shift problem for my old records…

    I suppose I can export the database, modify my birth dates by adding one day in Excel and then reimport the database.

    But my initial question was and still is: is there an easier way to do this in the Participant Database? For example, computing something like : birthdate = birthdate + 1

    Plugin Author xnau webdesign

    (@xnau)

    There isn’t a way to do this built into the plugin. It should only affect records that were saved with the shifted date, the issue does not change the saved data unless the record is updated with a shifted date.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is there an easy way add one day to my date of birth field’ is closed to new replies.