[wp-trac] [WordPress Trac] #48976: Current_time

WordPress Trac noreply at wordpress.org
Mon Dec 16 12:37:16 UTC 2019


#48976: Current_time
-------------------------------+------------------------------
 Reporter:  autotutorial       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Date/Time          |     Version:  5.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by autotutorial):

 In the core I don't see adding an object but simply a string. wp_timezone
 alias of wp_timezone_string the value is string, in the current_time code
 is added to the DateTime class as a string.

 Now think of get_option ('gmt_offset');
 i have string timezone Europe /Berlin get_option('timezone_string') mind
 offset get_option('gmt_offset') is equal to 0 or I have 1.30 the
 conversion into integer loses all after the decimal point.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48976#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list