[wp-trac] [WordPress Trac] #9285: Ensuring scheduled posts publish on time.
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 30 04:48:51 UTC 2010
#9285: Ensuring scheduled posts publish on time.
--------------------------+-------------------------------------------------
Reporter: hailin | Owner: westi
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.0
Component: Date/Time | Version: 2.8
Severity: normal | Keywords: has-patch early
--------------------------+-------------------------------------------------
Comment(by solarissmoke):
Replying to [comment:31 technosailor]:
> That's what 9285-3.diff does now without the get_gmt_offset() which I
think is superfluous.
But there are other instances in the core where the same manipulation is
required (as in #13173, when a post is created using xmlrpc). The logic
behind having a separate function is so that this manipulation isn't
duplicated in multiple locations.
Besides, the method in 9285-3.diff is rather long-winded. The
timezone_offset_get() function (used in wp_timezone_override_offset) does
it all for you when you supply the the time and timezone for which you
want an offset - so I would suggest it is better to use what is already
there.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9285#comment:32>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list