ActionScheduler_TimezoneHelper::get_local_timezone_string( $reset = false )
Helper to retrieve the timezone string for a site until a WP core method exists (see https://core.trac.wordpress.org/ticket/24730).
Description Description
Adapted from wc_timezone_string() and https://secure.php.net/manual/en/function.timezone-name-from-abbr.php#89155.
If no timezone string is set, and its not possible to match the UTC offset set for the site to a timezone string, then an empty string will be returned, and the UTC offset should be used to set a DateTime’s timezone.
Return Return
(string) PHP timezone string for the site or empty if no timezone string is available.
Source Source
File: packages/action-scheduler/classes/abstracts/ActionScheduler_TimezoneHelper.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |