[wp-trac] [WordPress Trac] #34435: get_gmt_from_date() can return incorrect value when input during fall's DST switch
WordPress Trac
noreply at wordpress.org
Sun Oct 25 17:31:58 UTC 2015
#34435: get_gmt_from_date() can return incorrect value when input during fall's DST
switch
-----------------------------+------------------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by Viper007Bond):
Replying to [comment:3 Viper007Bond]:
> This bug should be avoidable if we stop determining GMT (UTC) date/time
based on local date/time when creating a post '''without''' a provided
date/time. Since those values will default to now, we don't need to
convert timezones because we know what now is in UTC. We can determine now
in UTC and local time independently of each other.
Note that this doesn't fix `get_gmt_from_date()` (I'm not sure that's
possible), but it does fix trying to publish a post now and having it end
up being scheduled an hour in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34435#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list