Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39595, comment 14


Ignore:
Timestamp:
03/27/2018 01:08:36 PM (7 years ago)
Author:
romulodl
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39595, comment 14

    initial v1  
    44> Basically, WordPress does the same job as PHP here, while leaving the default timezone as UTC for consistent time calculation throughout the rest of the system.
    55
    6 @Otto42 Thanks for that. Just after my reply I saw that you can put `London` there, not just only `UTC+1`. Ane really really Sorry for the annoyance...
     6@Otto42 Thanks for that. Just after my reply I saw that you can put `London` there, not just only `UTC+1`. Ane really really sorry for the annoyance...
    77
    8 Just for the sake of information. If you run `new DateTime` in your theme/plugin it will not get the timezone selected in wordpress settings. Always add manually the TimeZone object.
     8Just for the sake of information. If you use `new DateTime` in your theme/plugin it will not get the timezone selected in wordpress settings. Always add manually the TimeZone object.
    99
    1010The selected timezone will be available via `get_option('timezone_string')`