• Resolved fersamp

    (@fersamp)


    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)
  • 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?

    @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/

    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.
    • This reply was modified 8 years, 6 months ago by Robswaimea.
    • This reply was modified 8 years, 6 months ago by Robswaimea.
    Thread Starter fersamp

    (@fersamp)

    @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.
    • This reply was modified 8 years, 6 months ago by fersamp.
    • This reply was modified 8 years, 6 months ago by fersamp.
    • This reply was modified 8 years, 6 months ago by fersamp.
    • This reply was modified 8 years, 6 months ago by fersamp.
    • This reply was modified 8 years, 6 months ago by fersamp.
Viewing 3 replies - 1 through 3 (of 3 total)

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