Support

Home Forums Event Espresso Premium Time Zone Issues/Questions

Time Zone Issues/Questions

Posted: January 31, 2013 at 7:51 am


bblessings

January 31, 2013 at 7:51 am

  1. Does Event Espresso give an option to use 24-hour clock times for specific events, i.e., events in Europe? When I tried for a new event, the time changed from the 24-hour times input to the 12-hour clock time once I saved the new event.
  2. Then I tried changing the time zone from Berlin to UTC+1, the page switch to an Event Overview page that includes a rather long Fatal Error (see below). There is no Update button on this page for me to change back to the Berlin selection.

Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [‘datetimezone.–construct’>datetimezone.–construct]: Unknown or bad timezone (UTC+1)’ in /home/blessing/public_html/wp-content/plugins/event-espresso/includes/functions/time_date.php:532 Stack trace: #0 /home/blessing/public_html/wp-content/plugins/event-espresso/includes/functions/time_date.php(532): DateTimeZone->__construct(‘UTC+1′) #1 /home/blessing/public_html/wp-content/plugins/event-espresso/includes/event-management/edit_event.php(507): eventespresso_ddtimezone() #2 /home/blessing/public_html/wp-content/plugins/event-espresso/includes/event-management/index.php(95): edit_event(’29’) #3 /home/blessing/public_html/wp-includes/plugin.php(408): event_espresso_manage_events(’29’) #4 /home/blessing/public_html/wp-admin/admin.php(151): do_action(”) #5 {main} thrown in /home/blessing/public_html/wp-content/plugins/event-espresso/includes/functions/time_date.php on line 532

  • This topic was modified 4 years, 1 month ago by  Seth Shoultes. Reason: Removed broken link


Dean

January 31, 2013 at 11:41 pm

Hi,

Event Espresso uses the WordPress time and date settings for 99% of things in the plugin.

If you head over to the WordPress Settings > General menu and make sure that the timezone is set to Berlin (or closest city) and in the Time Format either select the third option down or in the Custom option type H:i and then save changes.

That will give you the time in 24 hour clock with a leading zero (so 7am = 07:00)

Swapping back to the Berlin timezone in the General > Settings should also fix that fatal error, but if not please advise.


bblessings

February 1, 2013 at 12:30 pm

Thanks Dean.
It sounds like the WordPress fix you’ve given me would make OUR time zone as Berlin. That’s not true. We’re wanting to show the time zone for only that one workshop to be Berlin AND to use the 24-hour clock for only that workshop. It sounds like that’s not possible?


Dean

February 2, 2013 at 3:07 am

Hello,

I see, I didnt realise it was for just one event. It is possible to show a different timezone per event, but not the style of time (24hr in this case) as it is set site wide.

If you wanted to dig into the template code, you could probably set it up with PHP. E.g. set a category for that event and then do an if else statement around the time, so in pseudo code:

if this category { time is 24hr } else { normal time }

That would be the only way I could think you could do it.


bblessings

February 9, 2013 at 11:47 am

Thanks again, Dean. I really don’t want to have to dig into the template code unless it’s absolutely necessary. We’ve found a workaround. The event description has the 24-hour clock time, which Europeans are used to seeing, AND the on-line registration form (created by the Event Espresso plugin) has the time in 12-hour clock format.

Now, the next issue for us is how to show the price in EUROs. I’ll start a new Help Topic for this one.

The support post ‘Time Zone Issues/Questions’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso