[wp-trac] [WordPress Trac] #51130: Events displayed in venue timezone instead of user's

WordPress Trac noreply at wordpress.org
Mon Sep 21 17:15:22 UTC 2020


#51130: Events displayed in venue timezone instead of user's
--------------------------------------+------------------------------
 Reporter:  iandunn                   |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Date/Time                 |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by iandunn):

 Er, nevermind, it does look like [https://developer.mozilla.org/en-
 US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString
 toLocaleTimeString()] will do that. [https://github.com/WordPress
 /wordpress-develop/pull/539/commits #pr539] is already using it, but w/
 the locale hardcoded. I wanted to remove that anyway, though.
 [https://developer.mozilla.org/en-
 US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
 Leaving that param empty should default to the user's (browser/BCP47)
 locale]. As long as we can still parse it out reliably, that should work.

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


More information about the wp-trac mailing list