public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Merkle <web@blue-andi.de>
To: newlib@sourceware.org
Subject: Timezones in <+-nn> format are not handled
Date: Tue, 15 Mar 2022 15:23:00 +0100	[thread overview]
Message-ID: <9b1bb39e-0a9c-612e-3aa5-1be15577fb2b@blue-andi.de> (raw)

Posix timezone strings are in the format ABRVnn[ABRV[nn]][,...], e.g. 
GMT0BST,... is London TZ descriptor with two abbreviations GMT and BST.
ABRV means abbreviation. Such abbreviations are not defined for every 
timezone around the world.
According to https://data.iana.org/time-zones/theory.html if there is no 
common English abbreviations, use offsets like -05 and +0530 that are 
generated by zic's %z notation.
These numeric offsets are enclosed between <...>. For example, 
abbreviation for Sao Paulo TZ is <-03>3 (instead of e.g. valid SAOPAUL03).

A pull request for the newlib-xtensa version by earlephilhower fixes 
this: https://github.com/earlephilhower/newlib-xtensa/pull/14
I would like to provide the corresponding patch here if its ok?

Andi


             reply	other threads:[~2022-03-15 14:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-15 14:23 Andreas Merkle [this message]
2022-03-15 15:47 ` Joshua Westerheide
2022-03-15 23:05   ` Andreas Merkle
2022-03-16 20:40     ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9b1bb39e-0a9c-612e-3aa5-1be15577fb2b@blue-andi.de \
    --to=web@blue-andi.de \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).