Posted: January 31, 2013 at 7:51 am
|
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
|
|
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. |
|
Thanks Dean. |
|
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. |
|
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.