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]
There are no replies made for this post yet.
However, you are not allowed to reply to this post.
However, you are not allowed to reply to this post.
Last questions
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
4 Replies
Posted on Tuesday, 30 April 2024
Hallo,
ich habe eine Frage in Bezug auf SEO: ein externer Spezialist macht die...
1 Replies
Posted on Monday, 29 April 2024
Hallo
ich habe eine kleine Frage: wo kann ich einstellen, dass Google die Seite...
1 Replies
Posted on Wednesday, 24 April 2024
Are you able to make changes to the Hotspot submission form? There are several f...
0 Replies
Posted on Friday, 26 April 2024
How do I access custom fields after I have created them?...
0 Replies
Posted on Wednesday, 24 April 2024
- #custom fields