[wp-hackers] Date/Time and WP
Dobri
dyordan1 at ramapo.edu
Wed Jul 17 13:14:13 UTC 2013
That makes sense. So, would you say there are performance benefits to using DateTime and the function you provided to just using date_i18n as William suggested? And is this a more robust method (for now) because of the bug in core that Alex brought up when dealing with date/time in DLS while it's currently not DLS and vice versa?
~Dobri
On Wed, 17 Jul 2013, at 9:06 AM, Ryan McCue wrote:
> Dobri wrote:
>> Thanks Ryan! When would a timezone_string not exist though? Wouldn't that simply mean settings were not touched, therefore it's some default (I'd guess UTC?)
>
> If the timezone is set to a manual offset (e.g. UTC+10), then the
> timezone string won't be set (IIRC). In addition, older versions of
> WordPress won't have the timezone_string setting and use gmt_offset instead.
>
> --
> Ryan McCue
> <http://ryanmccue.info/>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list