2020-05-01 / 5971阅 / 悠然
Given a date in the timezone of the site, returns that date in UTC timezone.
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 the timezone of the site.
(string)
(Optional)
The format string for the returned date.
Default value: 'Y-m-d H:i:s'
(string) Formatted version of the date, in UTC timezone.