NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/57588: gmtime(3): value of %s depends on TZ environment variable
The following reply was made to PR lib/57588; it has been noted by GNATS.
From: Christos Zoulas <christos%zoulas.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost,
roland.illig%gmx.de@localhost
Subject: Re: lib/57588: gmtime(3): value of %s depends on TZ environment
variable
Date: Sat, 19 Aug 2023 14:25:33 -0400
--Apple-Mail=_9E6D08AD-2857-4AD1-81C1-44F33AC7C358
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii
There is no problem here. mtkime(3) uses the current timezone to convert.
[2:23pm] 569>env TZ=UTC ./a.out
now= 1692469390
gmtime= 1692469390
localtime= 1692469390
christos
--Apple-Mail=_9E6D08AD-2857-4AD1-81C1-44F33AC7C358
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCZOEJHQAKCRBxESqxbLM7
OmwbAKDD9tPx6aTzz04biJ35PF5FwL5cEwCfaJD33kozvIHxqrTRlHOL+0e6Po8=
=pKB/
-----END PGP SIGNATURE-----
--Apple-Mail=_9E6D08AD-2857-4AD1-81C1-44F33AC7C358--
Home |
Main Index |
Thread Index |
Old Index