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
Hi,
Where can I change the title 'Hotspots' in the map overview (see attachme...
3 Replies
Posted on Sunday, 05 September 2021
When I reply to a comment as an admin, my reply is shown in bold text. It looks ...
5 Replies
Posted on Sunday, 29 December 2024
Hi, profile image for administrator is not showing in comment.
https://www.hu...
2 Replies
Posted on Friday, 13 December 2024
Hello
In previous versions of CComment, it was possible to enable a field in ...
1 Replies
Posted on Saturday, 14 December 2024
If I want to leave a comment on a post, I click on the button and a new page wit...
5 Replies
Posted on Friday, 20 December 2024