[wp-trac] [WordPress Trac] #9285: Ensuring scheduled posts publish on time.

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 29 05:19:22 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):

 From the patch in #13173, I propose that a introducing function like this:

 {{{
 /**
  * Get the gmt_offset at a specified time. This is different from using
 get_option('gmt_offset')
  * because it lets you specify a time in the past or future (where the
 daylight savings may be different
  * from the current time. Defaults to the gmt_offset option if timezone
 support doesn't exist, or if the
  * timestamp argument is omitted.
  *
  * @since
  * @return float|bool
  */
 function get_gmt_offset($timestamp = 'now') {
         // if no timestamp is supplied, or if PHP doesn't support fancy
 timezone handling, just get the option
         if('now' == $timestamp || !wp_timezone_supported() )
                 return get_option('gmt_offset');

         return wp_timezone_override_offset($timestamp);
 }
 }}}

 Would help solve both these issues.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9285#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list