• Times are displaying not as expected.
    in Single site install and Multi Site Install.

    Have attempted varied versions of settings but display invariably returns to hours out front and back end.

    General Settings TimeZone = UTC
    or
    General Settings TimeZone = Named Location

    Both result in mismatch of back and front end times out by hours.

    If you correct either option, the other time goes out by hours.
    Making for very much confusion with bookings and events.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    I tried this one and seems to be working fine; can I know what is your current EM version please?

    I am not part of official support.. just some dude…

    I am having trouble the way you wrote your question….

    But looking at your picture……
    Dashboard and Front End are correct…
    Edit Event is wrong… when you go back to Edit Event.

    When you Add NEW Event it works ? Displays correctly Dashboard and Front End.

    But when you go to “Edit” and Event… the time is “offset” and incorrect.

    If that is what you are saying… I had a similar situation… and was a conflict with another plugin, particularily a Calendar plugin.

    I add an Event… all is ok… but when I go to Edit an Event… the times are wrong.

    If you can discover the plugin conflict, and not use the other plugin… try that.

    I had, and still do after updates… “hardcode”…
    …/events-manager/templates/forms/event/when.php

    You can try this… in the “when.php” file….
    Change the lines of code to add a time offset… which will be in seconds.
    Should be lines 15 to 21…. its only two lines 17 and 19 and only a little at the end of each,
    but I include the block… so you can see it all.
    ================

    <p class="em-time-range">
    		<span class="em-event-text"><?php _e('Event starts at','dbem'); ?></span>
    		<input id="start-time" class="em-time-input em-time-start" type="text" size="8" maxlength="8" name="event_start_time" value="<?php if (empty($EM_Event->start)) { echo date($hours_format, $EM_Event->start); } else {echo date( $hours_format, $EM_Event->start+25200 );} ?>" />
    		<?php _e('to','dbem'); ?>
    		<input id="end-time" class="em-time-input em-time-end" type="text" size="8" maxlength="8" name="event_end_time" value="<?php if (empty($EM_Event->end)) { echo date($hours_format, $EM_Event->end); } else {echo date( $hours_format, $EM_Event->end+25200 );} ?>" />
    		<?php _e('All day','dbem'); ?> <input type="checkbox" class="em-time-all-day" name="event_all_day" id="em-time-all-day" value="1" <?php if(!empty($EM_Event->event_all_day)) echo 'checked="checked"'; ?> />
    </p>

    ================

    Lines 17 and 19 we are adding 7 hours in seconds. ie “+ 25200” to the “start” and “end”.

    If this solves your problem…. you will also need to change for recurring events….
    recurring-when.php and when-with-recurring.php the same way.

    As mentioned for me it was a plugin conflict.

    As always… back up your original files before changing. Preferable by FTP.

    Thread Starter BeHeard

    (@beheard)

    Events Version 5.6.5

    The conflicting times are different – ie they are not out by a consistent time eg: 7hours 🙂
    The entered time was neither 9am nor 2 am

    This is an issue that has arisen previously with a few users and Marcus suggested changes to timezone and an issue with Full calendar – it appeared to be correct for a while now same unexpected behaviour.

    Fixed previous entries which currently remain stable.
    New entries today out – note this is happening on more than one site using events some are stand alone some are Multisites.

    The odd thing is they look correct when entered etc, leave the site and come back later or someone asks why a session is on at 2am 🙂
    I use Full Calendar in all the sites using events.

    • This reply was modified 7 years, 7 months ago by BeHeard.

    Hi. Same issue here. Multisite Install. Blog by Blog instance.
    Whhen editing time of the event change. It puts 2 hours more for start and end time… I have tried to change my UTC time without success. Still on the ball …

    Same issue here. When saving an event 2 hours are added to the chosen time on the editing page, but it is correct on the published page. But next time I edit the page I have to correct time with two hours backwards from for example 4 PM to 2 PM, every time. It’s very annoying.

    Are you using UTC hours or a location name for your time settings?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Event Time mismatch’ is closed to new replies.