[opensuse] Opensuse 12.1 - possible bug in date - please verify
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. - -S - -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ Heckler & Koch - the original point and click interface 09:35am up 2:23, 5 users, load average: 0.30, 0.28, 0.25 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk8ZGpcACgkQbQKZlCdPOMOYIACbBGnTNF+pxE5y8p3D2pRLNLuP aX0AniMvTtqSunXpe5DNP1tGsdGu+0Yo =rahO -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Stefan Gofferje wrote:
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'm not familiar with that way on using 'date' - what does "date -u" say?
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.
The usual place - http://bugzilla.novell.com -- Per Jessen, Zürich (5.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, On Fri 20 January 2012 09:46:09 Per Jessen wrote:
I'm not familiar with that way on using 'date' - what does "date -u" say?
date -u shows the correct UTC time (-2h). The mentioned use of date is described in the manpage. - -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ Heckler & Koch - the original point and click interface 11:28am up 4:16, 4 users, load average: 0.44, 0.35, 0.33 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk8ZNAIACgkQbQKZlCdPOMM8jgCgwzvuCNJpQgGYgH8D9U6U+N3Q Bo8AoLFN2R93P9rbkD88ERfADQ9Q191T =6X7Y -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
participants (3)
-
Per Jessen
-
Sebastian Freundt
-
Stefan Gofferje