[wp-trac] [WordPress Trac] #20942: get_gmt_from_date() throws exceptions

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 10 01:50:22 UTC 2012


#20942: get_gmt_from_date() throws exceptions
--------------------------+------------------------------
 Reporter:  mdawaffe      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by wonderboymusic):

 * keywords:  needs-patch => has-patch


Comment:

 The RegEx already checks for proper date string, so all we need to do if
 wrap the if / else timezone code in if ( $matches ) { .... }. I am not in
 love with the procedural aliases PHP offers.

 Attached a patch

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20942#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list