[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
Tue Oct 20 06:07:47 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:  wonderboymusic
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.4
Component:  Date/Time                 |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35284"]:
 {{{
 #!CommitTicketReference repository="" revision="35284"
 Formatting: allow date strings to be passed to `get_gmt_from_date()`,
 instead of requiring `'Y-m-d H:i:s'`.

 Adds unit tests.

 Props pbearne.
 Fixes #34279.
 }}}

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


More information about the wp-trac mailing list