By Jeff.Steinkamp on Saturday, 20 February 2021
Replies 2
Likes 0
Views 566
Votes 0
How do I display the time zone that was selected when an event was created?

I know I can use %Z in the custom format string to display a time zone abbreviation, but this appears to be the time zone of the server. We have some events that are created using UTC time and should be displayed that way and other events that are created with the local time zone where the event will happen.
Hello,

It isn't possible at present. But if you replace this file on your site

https://github.com/JEvents/JEvents/blob/f39dddad348463c85d06d9f24081e14781f66c67/component/site/views/default/helpers/defaultloadedfromtemplate.php

You will then be able to use:

{{tzid:TZID}} to output the timezone set in that event

Many thanks
Tony
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Well that didn't work. It really screwed up the whole Upcoming Events module. That module looked like it was actually showing all of the code that was in that file you had me replace. The file that is current on the system is only 88K, but this new file is 963K. Is that correct.? Here some screen shots of the top of the Upcoming events module, and the bottom.

Events1.png

events2.png
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post