Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #48976, comment 9


Ignore:
Timestamp:
12/16/2019 02:08:45 PM (5 years ago)
Author:
autotutorial
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48976, comment 9

    v1 v2  
    33Now think of get_option ('gmt_offset');
    44i 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.
     5I apologize, I checked and everything works correctly, my error was to expect a string from wp_timezone instead it is converted into a DateTimeZone object, while even if I don't have gmt_offset in the WordPress database it converts it to the correct value.
     6Thank you for your time.