WordPress.org

Making WordPress.org

Changes between Initial Version and Version 1 of Ticket #5466, comment 3


Ignore:
Timestamp:
10/08/2020 10:55:28 AM (14 months ago)
Author:
Otto42
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5466, comment 3

    initial v1  
    11Would simply adding parenths around the timezone make more sense for all cases? Because that's not a standard format I've ever seen before, the standard is usually simply to specify the timezone after the time. But then most timezones are named, so seeing GMT+2 is not the usual case.
     2
     3Edit: Note that with the current implementation, there's no easy way to do this. The time is formatted by the browser using the Date.prototype.toLocaleTimeString() function.
     4
     5https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString
     6
     7All that the w.org code is doing is to figure out the actual time, pass it along to that function, and then tell the browser to display it in the browser's own default language. The formatting and such is thus entirely browser dependent.