Changes between Initial Version and Version 1 of Ticket #48976, comment 4
- Timestamp:
- 12/16/2019 11:56:33 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #48976, comment 4
initial v1 11 11 > 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 12 12 13 I don't follow this part. Yes, historically there are a lot of DST bug caused by use of WP timestamps (sum of a Unix timestamp with time zone offset). Historically WP calculated these by adding offset at ''current'' time, which might be wrong, but doing this is altogether wrong.13 I don't follow this part. Yes, historically there are a lot of DST bugs caused by use of WP timestamps (sum of a Unix timestamp with time zone offset). Historically WP calculated these by adding offset at ''current'' time, which might be wrong, but doing this is altogether wrong. 14 14 15 15 This behavior is preserved for backwards compatibility reasons and optimal action is to use real Unix timestamps and proper DateTimeImmutable/DateTimeZone objects.