Title: Event time change when edit
Last modified: November 13, 2017

---

# Event time change when edit

 *  Resolved [fersamp](https://wordpress.org/support/users/fersamp/)
 * (@fersamp)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/event-time-change-when-edit/)
 * Hi guys,
    I noticed that if you create an event and then you edit it, the timepicker
   on right top page shows an incorrect start/end event time: this is a problem,
   because if you save again the event, you save an incorrect event start/end time.
 * This happens even if you have to approve an event written from one of your user,
   so I think is releated to all type of event edit.
 * Some suggestion to solve the problem?
 * Thank you for help.

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

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/event-time-change-when-edit/#post-9678558)
 * Hi,
 * It’s possible this is a conflict caused by your theme or another plugin. To check
   if it is, can you test with all other plugins deactivated and while running the
   default WordPress theme?
 *  [Robswaimea](https://wordpress.org/support/users/robswaimea/)
 * (@robswaimea)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/event-time-change-when-edit/#post-9679195)
 * [@fersamp](https://wordpress.org/support/users/fersamp/) ….. hmmm… don’t you 
   owe me a beer ?
    just kidding of course.
 * As caimin_nwl mentioned… maybe a conflict.
 * Because.. well I know you have experience with this plugin.. and wordpress…
    
   I did notice that your previous website now “defaults” to a different one.
 * So I don’t know what changed with the old website.. that didn’t have this problem.
 * For me it was a conflict, and I fixed…
    In the folder.. events-manager\templates\
   forms\event
 * You will see three templates with “when” in the name and that is what I changed.
 * Basically you will change
    `$EM_Event->start` `$EM_Event->end`
 * to something with the correct time offset in seconds like this…
 * `$EM_Event->start+18000`
    `$EM_Event->end+18000`
 * you can see this thread…
    [https://wordpress.org/support/topic/fixed-gmt-offsetcorruption-when-editing-events/](https://wordpress.org/support/topic/fixed-gmt-offsetcorruption-when-editing-events/)
 * So I guess it’s like two beers now you owe me 🙂
 * Have a good holiday season buddy 🙂
    -  This reply was modified 8 years, 6 months ago by [Robswaimea](https://wordpress.org/support/users/robswaimea/).
    -  This reply was modified 8 years, 6 months ago by [Robswaimea](https://wordpress.org/support/users/robswaimea/).
    -  This reply was modified 8 years, 6 months ago by [Robswaimea](https://wordpress.org/support/users/robswaimea/).
 *  Thread Starter [fersamp](https://wordpress.org/support/users/fersamp/)
 * (@fersamp)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/event-time-change-when-edit/#post-9680575)
 * [@robswaimea](https://wordpress.org/support/users/robswaimea/), thank you very
   much my friend, I solved with
 * `$EM_Event->start-(new DateTimeZone("Europe/Rome"))->getOffset(new DateTime("
   now", new DateTimeZone("Europe/London")))`
 * that in my case is equivalent to “$EM_Event->start – 3600”, timezone offset between
   my city ( Rome ) and London ( timezone 0 ), in wp-content/plugins/events-manager/
   templates/forms/event/when.php.
 * You are always kind…thank you again, I have to owe you a beer 🙂
 * Thank you all again.
    -  This reply was modified 8 years, 6 months ago by [fersamp](https://wordpress.org/support/users/fersamp/).
    -  This reply was modified 8 years, 6 months ago by [fersamp](https://wordpress.org/support/users/fersamp/).
    -  This reply was modified 8 years, 6 months ago by [fersamp](https://wordpress.org/support/users/fersamp/).
    -  This reply was modified 8 years, 6 months ago by [fersamp](https://wordpress.org/support/users/fersamp/).
    -  This reply was modified 8 years, 6 months ago by [fersamp](https://wordpress.org/support/users/fersamp/).
    -  This reply was modified 8 years, 6 months ago by [fersamp](https://wordpress.org/support/users/fersamp/).

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

The topic ‘Event time change when edit’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [edit](https://wordpress.org/support/topic-tag/edit/)
 * [Event Time](https://wordpress.org/support/topic-tag/event-time/)

 * 3 replies
 * 3 participants
 * Last reply from: [fersamp](https://wordpress.org/support/users/fersamp/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/event-time-change-when-edit/#post-9680575)
 * Status: resolved