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

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 14 01:44:08 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:  needs-patch   |
--------------------------+------------------------------
Changes (by scribu):

 * keywords:   => needs-patch


Comment:

 We don't like exceptions, so date_create() it is. In my mind, returning
 `false` would make the most sense for an invalid date.

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


More information about the wp-trac mailing list