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.

Last questions

categories icon in header
Hi! I saw this in the promo, but I can't find how to set it up. https://compo...
0 Replies
Posted on Monday, 22 April 2024
  • New
    • #style
    • #Categories
    Questions on new installation...
    Working on getting this set up... https://eastend2024.joepolecheck.com/rumma...
    3 Replies
    Posted on Wednesday, 17 April 2024
  • Resolved
  • New
  • Changes to the Submission form
    Can you make changes to the Submission form? There are a few fields I'd like to ...
    0 Replies
    Posted on Thursday, 18 April 2024
  • New
  • Error received? Class "XMLReader" not fo
    Just installed the Pro version of Hotspots, but am getting an error when I try t...
    1 Replies
    Posted on Wednesday, 17 April 2024
  • Resolved
  • New
  • Links aus Veranstaltungsübersicht funktionieren ni
    Nach der Migration von Joomla 3.10 auf Joomla 5.0.3 treten folgende Probleme auf...
    2 Replies
    Posted on Monday, 08 April 2024