[tz] Troubles with zone Asia/Gaza after tzdata2020b release

Brian Inglis Brian.Inglis at SystematicSw.ab.ca
Mon Mar 15 17:04:35 UTC 2021

On 2021-03-15 08:30, Tim Parenti via tz wrote:
> On Mon, 15 Mar 2021 at 10:11, Evgheni Antropov via tz <tz at iana.org 
> <mailto:tz at iana.org>> wrote:
>     something goes wrong at October, when DST will disable.

Your date -s commands are changing and setting the system time!

> Your command:
> date +"%Y%m%d %T" -s "20211030 00:59:55"
> is inherently ambiguous because 00:59:55 occurs twice on that date in your 
> zone.  date has chosen to give you the second occurrence of this time, one hour 
> after the transition you're trying to observe has already happened.  This is why 
> your output is entirely in EET.
> You can unambiguously specify the UTC timestamp associated with the time you 
> wish to inspect with something more like:
> date +"%Y%m%d %T" -s "20211029 21:59:55" -u

Option -s is intended to change and set the system time:

	$ date -s "20210401 23:55:55"
	date: cannot set date: Operation not permitted
	2021 Apr  1 Thu 23:55:55 MDT

To display a given time you should use only e.g.

	$date -ud "20211029 21:59:55+0000" +%...

when -u displays the UTC equivalent.

Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

More information about the tz mailing list