Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#9793 closed defect (bug) (fixed)

Duplicates in the timezone drop down

Reported by: Denis-de-Bernardy Owned by:
Priority: high Milestone: 2.8
Component: Date/Time Version: 2.8
Severity: minor Keywords: has-patch tested commit
Cc:

Description

GMT = GTM0 = GTM+0 = GTM-0 = UTC = UCT = Universal = Greenwich = Zulu

Might not GMT be enough? :D

Attachments (1)

9793.diff (627 bytes) - added by Denis-de-Bernardy 4 years ago.

Download all attachments as: .zip

Change History (17)

  • Component changed from General to Date/Time
  • Keywords needs-patch added
  • Owner anonymous deleted
  • Severity changed from normal to minor

see also #9758 (found it while fixing that, and there's no point in patching before it's fixed)

was of course meant GMT = GMT0 = GMT+0 = GMT-0 = ...

some testing could be useful in case they're not available in all platforms. maybe setting some kind of variable ($did_gmt) would be the better way to work around this, rather than trying to spot which one is "best".

May UTC be used instead of GMT? UTC is a more official term.

actually, that's only true for the US. in the UK, they say UCT for the same thing...

UTC is the official term (http://en.wikipedia.org/wiki/UTC#Abbreviation), and Windows 7 is using it instead of GMT.

comment:8   ryan4 years ago

As a crusty old telecom engineer who has implemented way too many ITU specs, I say let everyone use UTC. :-)

We already mention UTC in the timezone setup, let's stick with it. We can link to the wikipedia page from the UTC in the "UTC time is" text to introduce those who are unfamiliar.

comment:9   ryan4 years ago

  • Priority changed from normal to high

comment:10 follow-up: ↓ 11   hakre4 years ago

+1 for GMT/UTC. GMT = UTC. the +/- thingy is for naming other timezones. +/-0 makes no sense then if you want to name GMT/UTC directly.

Personally I tend to say, GMT is more well known in the non-technical world, and UTC for the internet folks. Zulu for those who use it day by day while talking to each other: nautics, aviation and millitary.

Anyway, all three name the same, while GMT is then more British and UTC the international (pseudo) abbrevation. Zulu is more for speaking and less for writing/written language IMHO.

Which places are to patch?

comment:11 in reply to: ↑ 10   Denis-de-Bernardy4 years ago

Replying to hakre:

Which places are to patch?

It's a relatively straightforward one, in the wp_timezone_choice() function (wp-includes/functions.php)

Basically, if Continent == ETC, we'd want strip all dups for UTC.

  • Keywords has-patch tested commit added; needs-patch removed
  • Resolution set to fixed
  • Status changed from new to closed

(In [11434]) Standardize on UTC. Props Denis-de-Bernardy. fixes #9793

  • Keywords developer-feedback added

Shoudn't 'UCT' in the array not being 'UTC'? Typo?

UCT is correct. We want to exclude it and not UTC.

  • Keywords developer-feedback removed
Note: See TracTickets for help on using tickets.