Stefan Gofferje <stefan.gofferje@gmx.de> writes:
Hi,
I live in in Finland, in timezone EET which is 2(winter) or 3(summer) hours later than UTC. While writing a script I noticed the following:
Time was 09:31 EET. date -d '"TZ=UTC" now' resulted in 11:31 but it shoult have resulted in 07:31.
I checked a couple of times and the result is consistent and reproduceable. My system's timezone is set correctly to EET.
Please somebody verify that and then I'd need to know where to report bugs for date.
It's correct. date -d '"TZ=UTC" now' means, take now (which is 11:49 here) and interpret it as date/time in the zone UTC. Then proceed as usual: -u of that would result in 11:49 UTC, setting TZ to EET would result in 13:49, which is what you observed. Compare: shell> TZ=EET date -d now and shell> TZ=UTC date -d 'TZ=EET now' Sebastian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org