[wp-trac] Re: [WordPress Trac] #9313: Store the date format string "Y-m-d H:i:s" in a constant

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 11 13:49:05 GMT 2009


#9313: Store the date format string "Y-m-d H:i:s" in a constant
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:  anonymous             
     Type:  enhancement    |      Status:  new                   
 Priority:  normal         |   Milestone:  Unassigned            
Component:  General        |     Version:                        
 Severity:  normal         |    Keywords:  has-patch, 2nd-opinion
---------------------------+------------------------------------------------

Comment(by jacobsantos):

 I know it is more or less micro-optimization verses readability, but
 seriously? So if a fix for one of those is to change it to 'Y-m-d' because
 it changed to DATE instead, would the person decide to update the constant
 or just replace the constant with another string? What about having a
 constant for Date, that is used outside the context of MySQL as well?

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


More information about the wp-trac mailing list