WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #48976, comment 3


Ignore:
Timestamp:
12/16/2019 11:50:07 AM (11 months ago)
Author:
autotutorial
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48976, comment 3

    initial v1  
    1 I certainly elaborate my report, I admire WordPress and often I copy the code for my personal projects, I observed the wp_timezone function returns a text string or a string hh: mm but keep in mind that the hour is a float and not int as it does current_time but especially for the timestamp does not take into account the timezone string, if the timezone string is present the quasi numerical offset has a value of 0.
     1I certainly elaborate my report, I admire WordPress and often I copy the code for my personal projects, I observed the wp_timezone function returns a text string or a string hh: mm but keep in mind that the hour is a float and not int as it does current_time but especially for the timestamp does not take into account the timezone string, if the timezone string is present the almost numerical offset has a value of 0.
    22With php 7.3 I get an error if the DateTimeZone is not an object but a string.
    33
    44Time never stands still, in reality if you work with time zones that are not directly created by php, it is useful to check the DateTimeZone string with the WordPress string, differently when working dynamically with the php database timezone table ( there should not be a timezone conversion) also previous versions use daylight saving time incorrectly, it would be nice to add this also in WordPress.
    5 Another aspect is if I use php with local settings or the variable tz who knows how DateTime works? : D
     5Another aspect is if I use php with local settings or the variable tz who knows how DateTime works? :D