1. Scott King
  2. Sherlock Holmes
  3. Wishlist
  4. Wednesday, 04 March 2015
  5.  Subscribe via email
I'm revisiting something we talked some about before...

I currently serve events for locations in 3 different time zones from Matukio located on a single server. Everyone has their Joomla timezone set to the timezone the server is in. I would like to be able to define a timezone for locations configured in Matukio so that the times are displayed on the front-end in that timezone. That way, everyone sees the event in the timezone in which it's held as well. You could include the user's local timezone as well in the event details and listing if desired.

It would also be nice if the times entered by the organizer are treated as the timezone specified for the location but that's not as important as the first part of this suggestion.

For now, I modified the modern template to display all three timezones on the event details page. It turned out to be pretty simple with code like the following:
[code type=php]
$startdate = new DateTime($this->event->begin, new DateTimeZone('UTC'));
$startdate->setTimezone(new DateTimeZone('America/Denver'));
echo ", ".$startdate->format('H:i (T)') . "\n";
$startdate->setTimezone(new DateTimeZone('America/New_York'));
echo ", ".$startdate->format('H:i (T)') . "\n";
[/code]
Responses (0)


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Powered by EasyDiscuss for Joomla!