2020-05-01 / 2271阅 / 悠然
Given a date in UTC timezone, returns that date in the timezone of the site.
Requires and returns a date in the Y-m-d H:i:s format. Return format can be overridden using the $format parameter.
(string)
(Required)
The date to be converted, in UTC timezone.
(string)
(Optional)
The format string for the returned date.
Default value: 'Y-m-d H:i:s'
(string) Formatted version of the date, in the site's timezone.