Closed p5pRT closed 20 years ago
In earlier versions (5.6.0)\, I always had to set the environment variable TZ to "GMT" to print (strftime) the real time from my data in a database (stored as seconds since 1 jan 1970)\, but now I get GMT time via strftime although the TZ is set to MET. The follwing script gives date wrong by two hours:
#!/usr/local/bin/perl
$ENV{TZ} = "MET";
use POSIX;
tzset(); @tz = tzname(); print "@tz\n";
$dato = strftime("%Y/%m/%d %T"\,gmtime(time())); print "$dato\n";
Migrated from rt.perl.org#7228 (status was 'resolved')
Searchable as RT7228$