Changes between Initial Version and Version 1 of Ticket #4480, comment 16
- Timestamp:
- 08/25/2020 05:10:01 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4480, comment 16
initial v1 1 Ok, correct conversion of a local time string into timestamp would be something like `$datetime = date_create( $date, wp_timezone() )->getTimestamp();` in core . Having a meaningful time zone string there is preferable to offset (because summer time craziness and stuff).1 Ok, correct conversion of a local time string into timestamp would be something like `$datetime = date_create( $date, wp_timezone() )->getTimestamp();` in core (loose example, check that it's not false, etc). Having a meaningful time zone string there is preferable to offset (because summer time craziness and stuff).