Forums

Update to the {date:} function

healyhatman 06 Jan, 2019
The {date:} function has been updated in 6.0.21 so it now supports getting the date or time of a specific timezone, or according to your site's timezone setting.

{date:} will get date in UTC
{date/site:} will get date in whatever timezone your site's set to
{date/Sydney/Australia:} will get it from.... Sydney, Australia.

It needs to be a valid timezone string though or it'll throw an error. Here's the list.
http://php.net/manual/en/timezones.php
tempus 04 Mar, 2019
Thanks!

How to use {date:} to retrive the day after tomorrow?
Seems the {date:}+2 does not work
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger