Make WordPress Core

Ticket #28636

Attachments (14)

28636.1.diff​ (2.8 KB ) - added by mboynes 12 years ago.
Adds wp_date(), wp_strtotime(), and wp_get_timezone_string() to simplify working with local dates/times
28636.2.diff​ (2.8 KB ) - added by mboynes 12 years ago.
Another option for wp_date() and wp_strtotime() which doesn't use date_default_timezone_set()
28636.3.diff​ (3.4 KB ) - added by mboynes 12 years ago.
Leverage DateTime to parse the timezone from the string
28636.4.diff​ (2.7 KB ) - added by mboynes 12 years ago.
Same as 28636.3.diff but without additional line ending edits
28636.5.diff​ (2.7 KB ) - added by mboynes 12 years ago.
Latest update to date functions, removing adjacent @$ to improve readability
28636.6.diff​ (3.4 KB ) - added by MikeHansenMe 12 years ago.
Refreshed with basic unit tests
wp-date.patch​ (8.1 KB ) - added by Rarst 7 years ago.
localized-time-default-current-invalid-input.patch​ (1.1 KB ) - added by Rarst 7 years ago.
localized-time-invalid-input.patch​ (3.1 KB ) - added by Rarst 7 years ago.
functions.diff​ (562 bytes ) - added by gravityview 7 years ago.
Fixes issue where passing $timestamp_with_offset as 0 is interpreted as the current datetime, instead of unix epoch (see comment #34)
functions.2.diff​ (665 bytes ) - added by gravityview 7 years ago.
Fixes issue where passing $timestamp_with_offset as 0 is interpreted as the current datetime, instead of unix epoch for both GMT *and* non-GMT (see comment #34)
28636.tests.diff​ (723 bytes ) - added by soulseekah 7 years ago.
test 0 epoch
28636.tests.2.diff​ (723 bytes ) - added by soulseekah 7 years ago.
(without weird tabs at the end)
28636-handle-zero-timestamp.patch​ (1.9 KB ) - added by Rarst 7 years ago.

Download all attachments as: .zip