[wp-trac] [WordPress Trac] #20328: get_date_from_gmt assumes current gmt_offset is appropriate
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 30 00:45:20 UTC 2012
#20328: get_date_from_gmt assumes current gmt_offset is appropriate
---------------------------+------------------------------
Reporter: scottconnerly | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: |
---------------------------+------------------------------
Comment (by nacin):
This already happens deeper in the code.
If the option timezone_string is set, then we use it to set the GMT
offset, which means it is DST-aware.
Take a look at wp_timezone_override_offset() which overrides
get_option('gmt_offset') by hooking into pre_option_gmt_offset.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20328#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list