Changes between Version 1 and Version 2 of Ticket #48976, comment 9
- Timestamp:
- 12/16/2019 02:08:45 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #48976, comment 9
v1 v2 3 3 Now think of get_option ('gmt_offset'); 4 4 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. 5 I 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. 6 Thank you for your time.