XF 2.1 Template date code to use guest time zone

AndyB

Well-known member
In one of my templates I use the following code:

{{ date($timestamp) }}

This normally works fine and the date is shown based on the members time zone. However if I want to show the date based on the guest time zone (this is set in the Admin control panel Options page) is there a switch I can use to do that, possibly a pipe switch?
 
Top Bottom