On Tue, Mar 14, 2000 at 01:37:10PM +0000,
Philip Hazel <ph10@???> is thought to have said:
> I've been looking at the problem of ignoring "rougue" values of the TZ
> environment variable that happen to be set when Exim is called (see some
> previous threads) so as to ensure that the log times are wall clock
> times. You might think this kind of thing was standard, but, no...
>
> After some fruitless messing about[*] I think I might have found a simple,
> universal, way of doing it, and now I need people (preferably not in the
> GMT timezone)[+] to run my test program (below) on as many different OS as
> possible. Just compile and run the program (it shouldn't need any fancy
> options) and send me the output. Oh, and please run the "date" command as
> well, to record your actual local time.
>
> The experiments I've been able to do myself suggest there may be a
> problem with SCO systems :-( but other OS seem OK.
>
> Many thanks,
> Philip
>
> -------------------------------
> [*] including trying to track down tzsetwall() on Solaris, which is in
> the man page, but does not seem to actually exist.
>
> [+] I can't do tests on my own local hosts until after March 26th, when
> Summer Time begins here
Philip,
Here's results for:
Solaris 2.5.1 (SPARC), 2.6 (x86/SPARC), 2.7 (x86/SPARC), 2.8 (SPARC)
AIX 4.3.1
HPUX 11.00
Linux Redhat 5.2 x86, 6.0 x86
FreeBSD 3.3-REL, 3.4-REL
If you need me to run anything else on these systems, let me know...
Tabor
Solaris 2.5.1:
> date ; ./date.out
Tue Mar 14 08:51:27 EST 2000
TZ = US/Eastern
2000-03-14 08:51:27 default
TZ =
2000-03-14 08:51:27 TZ set to empty string
TZ = EST
2000-03-14 08:51:27 TZ set to EST
TZ = <unset>
2000-03-14 08:51:27 environment removed
Solaris 2.6 x86:
> date ; ./date.out
Tue Mar 14 08:47:40 EST 2000
TZ = US/Eastern
2000-03-14 08:47:40 default
TZ =
2000-03-14 08:47:40 TZ set to empty string
TZ = EST
2000-03-14 08:47:40 TZ set to EST
TZ = <unset>
2000-03-14 08:47:40 environment removed
Solaris 2.6 (SPARC):
> date ; ./date.out
Tue Mar 14 08:54:59 EST 2000
TZ = US/Eastern
2000-03-14 08:54:59 default
TZ =
2000-03-14 08:54:59 TZ set to empty string
TZ = EST
2000-03-14 08:54:59 TZ set to EST
TZ = <unset>
2000-03-14 08:54:59 environment removed
Solaris 2.7 (x86)
> date ; ./date.out
Tue Mar 14 08:57:42 EST 2000
TZ = US/Eastern
2000-03-14 08:57:42 default
TZ =
2000-03-14 08:57:42 TZ set to empty string
TZ = EST
2000-03-14 08:57:42 TZ set to EST
TZ = <unset>
2000-03-14 08:57:42 environment removed
Solaris 2.7 (SPARC)
> date ; ./date.out
Tue Mar 14 08:59:56 EST 2000
TZ = US/Eastern
2000-03-14 08:59:56 default
TZ =
2000-03-14 08:59:56 TZ set to empty string
TZ = EST
2000-03-14 08:59:56 TZ set to EST
TZ = <unset>
2000-03-14 08:59:56 environment removed
Solaris 2.8 (SPARC)
> date ; ./date.out
Tue Mar 14 08:58:41 EST 2000
TZ = US/Eastern
2000-03-14 08:58:41 default
TZ =
2000-03-14 08:58:41 TZ set to empty string
TZ = EST
2000-03-14 08:58:41 TZ set to EST
TZ = <unset>
2000-03-14 08:58:41 environment removed
AIX 4.3.1
# date ; ./date.out
Tue Mar 14 08:53:24 EST 2000
TZ = EST5EDT
2000-03-14 08:53:24 default
TZ =
2000-03-14 08:53:24 TZ set to empty string
TZ = EST
2000-03-14 13:53:24 TZ set to EST
TZ = <unset>
2000-03-14 13:53:24 environment removed
HPUX 11.00
# date ; ./date.out
Tue Mar 14 09:04:03 EST 2000
TZ = EST5EDT
2000-03-14 09:04:03 default
TZ =
2000-03-14 09:04:03 TZ set to empty string
TZ = EST
2000-03-14 14:04:03 TZ set to EST
TZ = <unset>
2000-03-14 09:04:03 environment removed
Red Hat Linux 5.2 (2.0.36 kernel)
$ date ; ./date.out
Tue Mar 14 09:06:39 EST 2000
TZ = <unset>
2000-03-14 09:06:40 default
TZ =
2000-03-14 14:06:40 TZ set to empty string
TZ = EST
2000-03-14 09:06:40 TZ set to EST
TZ = <unset>
2000-03-14 09:06:40 environment removed
Red Hat Linux 6.0 (2.2.5-22)
$ date ; ./date.out
Tue Mar 14 09:11:58 EST 2000
TZ = <unset>
2000-03-14 09:11:58 default
TZ =
2000-03-14 14:11:58 TZ set to empty string
TZ = EST
2000-03-14 09:11:58 TZ set to EST
TZ = <unset>
2000-03-14 09:11:58 environment removed
FreeBSD 3.3-REL
> date ; ./date.out
Tue Mar 14 09:06:40 EST 2000
TZ = <unset>
2000-03-14 09:06:40 default
TZ =
2000-03-14 09:06:40 TZ set to empty string
TZ = EST
2000-03-14 09:06:40 TZ set to EST
TZ = <unset>
2000-03-14 09:06:40 environment removed
FreeBSD 3.4-REL
% date ; ./date.out
Tue Mar 14 06:12:05 PST 2000
TZ = <unset>
2000-03-14 06:12:05 default
TZ =
2000-03-14 06:12:05 TZ set to empty string
TZ = EST
2000-03-14 09:12:05 TZ set to EST
TZ = <unset>
2000-03-14 06:12:05 environment removed
--
--------------------------------------------------------------------
Tabor J. Wells twells@???
Fsck It! Just another victim of the ambient morality