This add-on is not affiliated with XenForo Ltd.
If this add-on release has been useful to you or your community, please consider making a small donation (any amount welcome).
Quite simply, this add-on adds a template helper that allows you to display the current time in UTC format in your template.
Usage:
The time is currently 21:30. If I use the below code:
Code:
{xen:helper utctime}
21:30
Alternatively, if you would like to display the full date and UTC time, use the following code:
Code:
{xen:helper utctime, date}
Sep 25, 2012 at 9:30 PM
Why:
There is an existing datetime helper, but unfortunately it will always show the time in the visitor's current time zone. This will always show in the UTC time zone.
Installation:
This add-on can be installed using the Add-On Installer.
Alternatively...
- Extract the contents of the Zip file.
- Upload the contents of the upload folder to the root of your XenForo installation.
- Install in the Admin CP using the provided XML file.