Title: Datepicker shows wrong date
Last modified: February 26, 2025

---

# Datepicker shows wrong date

 *  Resolved [Suyta](https://wordpress.org/support/users/suygenneris/)
 * (@suygenneris)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/datepicker-shows-wrong-date/)
 * Hi there
 * When I edit past events the date is wrong:
 * [https://privatebin.net/?52a72042d9146e47#3hfdVFfpqSrrKUhiHPFKaDG879TSuvbVxnXbXTcRHcFh](https://privatebin.net/?52a72042d9146e47#3hfdVFfpqSrrKUhiHPFKaDG879TSuvbVxnXbXTcRHcFh)
 * The right date is 2025/02/24.
 * To show the right date on single event I must use:
 * `$date = get_post_meta( $event_id, '_EventStartDateUTC', true ) ? get_post_meta(
   $event_id, '_EventStartDateUTC', true ) : '';`
 * If I check from the database I have:
 * [https://privatebin.net/?17fbfc85fb1f2efa#5Jk5Kwqo5ixYRNi4SDZPZnZ4QGUA7EHhUndoErynrsk5](https://privatebin.net/?17fbfc85fb1f2efa#5Jk5Kwqo5ixYRNi4SDZPZnZ4QGUA7EHhUndoErynrsk5)
 * Is this normal for past events?
 * Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [tristan083](https://wordpress.org/support/users/tristan083/)
 * (@tristan083)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/datepicker-shows-wrong-date/#post-18328983)
 * Hi [@suygenneris](https://wordpress.org/support/users/suygenneris/) ,
 * Thank you for reaching out.
 * I am not sure how the `_EventStartDate` ended up to be one year ahead + timezone
   difference here but I have not been able to reproduce the issue in my testing
   environment running only The Events Calendar plugins and the twenty-twenty-one
   theme.
 * Is this happening to all of your past events? Is the issue occurring with new
   events that you create?
 *  Thread Starter [Suyta](https://wordpress.org/support/users/suygenneris/)
 * (@suygenneris)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/datepicker-shows-wrong-date/#post-18329005)
 * Hi [@tristan083](https://wordpress.org/support/users/tristan083/)
 * Thanks for your reply.
 * Yes, this happens in all the past events and if I create a new past event happens
   the same.
 * Inclusive I modified the _EventStartDate and the _EventEndDate from the database
   but when I edit the event automatically it changes to the next year.
 * So I thought it was a jQuery conflict. I disabled plugins to check but happens
   the same.
 * It is a mystery, driving me crazy 🙂
 *  Thread Starter [Suyta](https://wordpress.org/support/users/suygenneris/)
 * (@suygenneris)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/datepicker-shows-wrong-date/#post-18329211)
 * Hi [@tristan083](https://wordpress.org/support/users/tristan083/)
 * I found it. It was a function set from the theme which was running all the time
   adding 365 days if the event was a past event 🙁
 * Many thanks for your help, marking this ticket as solved.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/datepicker-shows-wrong-date/#post-18340389)
 * Hi [@suygenneris](https://wordpress.org/support/users/suygenneris/)
 * Thanks for your confirmation and I’m glad that it is now working.
 * If you have a minute, a great review from you would be amazing!
 * [https://wordpress.org/support/plugin/the-events-calendar/reviews/](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Datepicker shows wrong date’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/datepicker-shows-wrong-date/#post-18340389)
 * Status: resolved