[wp-trac] [WordPress Trac] #34279: 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

WordPress Trac noreply at wordpress.org
Mon Oct 12 23:48:40 UTC 2015


#34279: 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
--------------------------+-----------------------------
 Reporter:  pbearne       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Date/Time     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34279>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list