Opened 11 years ago
Closed 11 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Date/Time | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch and unit tests