[wp-trac] [WordPress Trac] #56459: Editor: wp.date.setSettings() passes timezone.offset a string instead of a float

WordPress Trac noreply at wordpress.org
Tue Aug 30 01:03:01 UTC 2022


#56459: Editor: wp.date.setSettings() passes timezone.offset a string instead of a
float
------------------------------+-----------------------------
 Reporter:  noisysocks        |       Owner:  noisysocks
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  Future Release
Component:  Editor            |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+-----------------------------
Changes (by noisysocks):

 * owner:  (none) => noisysocks
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53956" 53956]:
 {{{
 #!CommitTicketReference repository="" revision="53956"
 Editor: Ensure that `timezone.offset` passed to `@wordpress/date` is a
 float

 Fixes inconsistent type of `timezone.offset` passed to `@wordpress/date`.
 It
 should always be a float, never a string.

 Props talldanwp.
 Fixes #56459.
 }}}

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


More information about the wp-trac mailing list