[wp-trac] [WordPress Trac] #48660: Date/Time component malfunctioning after 5.3 update.

WordPress Trac noreply at wordpress.org
Fri Nov 22 19:40:14 UTC 2019


#48660: Date/Time component malfunctioning after 5.3 update.
--------------------------+------------------------------
 Reporter:  hannahmussey  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  5.3
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by wpnook):

 There are some pretty serious issues here with wide-ranging consequences
 for any builds featuring custom date functionality.

 Consider the following: a city-specific events aggregator outputing dates
 using PHP's {{{date()}}} function instead of the {{{DateTime}}} class.
 After this update, using {{{date_default_timezone_set()}}} no longer
 works.

 The dates and times for all of those events will now be output in UTC
 time, which creates all sorts of problems. Yes, it's ideal to use the
 {{{DateTime}}} class over {{{date()}}}, where the timezone can be set
 dynamically, but legacy code is sometimes a difficult reality.

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


More information about the wp-trac mailing list