Opened 9 years ago
Closed 9 years ago
#34279 closed defect (bug) (fixed)
if no timezone is set "get_gmt_from_date()" needs the date to be in 'Y-m-d H:i:s' when 'Y-m-d' works if timezone set
Reported by: | pbearne | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Date/Time | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
in the unit test we create posts we just a year e.g. test_validate_date_values_should_process_array_value_for_year this fails as "get_gmt_from_date()" needs the date to be in 'Y-m-d H:i:s' when get_option( 'timezone_string' ) is false.
This patch allows you pass in date string and for the correct date to be returned
Attachments (3)
Change History (9)
Note: See
TracTickets for help on using
tickets.
patch and unit tests