Saturday, 20 February 2021
  2 Replies
  567 Visits
0
Votes
Undo
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.
4 years ago
·
#220761
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

4 years ago
·
#220766
0
Votes
Undo
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
  • Page :
  • 1
There are no replies made for this post yet.