Resource icon

Display UTC Time Helper 1.0

No permission to download
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}
The output will be:
21:30

Alternatively, if you would like to display the full date and UTC time, use the following code:
Code:
{xen:helper utctime, date}
The output will be:
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.
Author
Chris D
Downloads
69
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Chris D

Latest reviews

I'm really happy with the result of this little time helper add-on. It turned out great!
Top