Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-18280 Add time zone offset symbol that doesn't use gmtZeroFormat #4347

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/ldml/tr35-dates.md
Original file line number Diff line number Diff line change
Expand Up @@ -1706,12 +1706,16 @@ Note: A generic location format is constructed by a part of time zone ID represe
* "UTC-3" (short)
* "Гринуич+03:30" (long)

Otherwise (when the offset from GMT is zero, referring to GMT itself) the style specified by the `<gmtZeroFormat>` element is used:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I don't agree with the assumption that a zero GMT offset refers to GMT itself. Azores Summer Time is GMT+0, but that doesn't make it GMT, it's still Azores Summer Time, just with a GMT offset of zero. I would actually prefer if this format never used the gmtZeroFormat and we wouldn't need to introduce a new format for this behaviour.

For the short and long formats, there's a special element for the zero offset (`<gmtZeroFormat>`):

* "GMT"
* "UTC"
* "Гринуич"

The fixed-length format does not use this element:

* "GMT+00:00"

**ISO 8601 time zone formats:** The formats based on the [[ISO 8601](tr35.md#ISO8601)] local time difference from UTC ("+" sign is used when local time offset is 0), or the UTC indicator ("Z" - only when the local time offset is 0 and the specifier X\* is used). The ISO 8601 basic format does not use a separator character between hours and minutes field, while the extended format uses colon (':') as the separator. The ISO 8601 basic format with hours and minutes fields is equivalent to RFC 822 zone format.

* "-0800" (basic)
Expand Down Expand Up @@ -2286,7 +2290,8 @@ Notes for the table below:
The ISO8601 UTC indicator "Z" is used when local time offset is 0.
This is equivalent to the "XXXXX" specifier.</td></tr>
<!-- O -->
<tr><td rowspan="2">O</td><td>O</td><td>GMT-8</td><td colspan="2">The <i>short localized GMT format</i>.</td></tr>
<tr><td rowspan="3">O</td><td>O</td><td>GMT-8</td><td colspan="2">The <i>short localized GMT format</i>.</td></tr>
<tr><td>OO</td><td>GMT-08:00</td><td colspan="2">The <i>fixed-length localized GMT format</i>.</td></tr>
<tr><td>OOOO</td><td>GMT-08:00</td><td colspan="2">The <i>long localized GMT format</i>.</td></tr>
<!-- v -->
<tr><td rowspan="2">v</td><td>v</td><td>PT</td>
Expand Down
Loading