Subject: | unable to determine timezone on OPEN UNIX |
Distrib name : DateManip-5.42a
perl version : 5.8.2 and 5.6.1
Operating system : Open UNIX 8.0.0 i386 x86at Caldera UNIX_SVR5
Hello,
Last week-end we had the change to summer time and the fonction Date_TimeZone() give this error message "ERROR: Date::Manip unable to determine TimeZone."
This is because on Open UNIX 8 the TZ environnement variable is ":WET" and not "WET".
The semicolons mean that the timezone is in a terminfo compiled file (otherwise there is a '/',the name is assumed to be a full pathname).
The patch I made simply suppress the semicolons at the beginning of the name of the timezone but I don't know if it can cause trouble with other timezone names.
I hadn't determined yet why the bug appear for the change to summer time, maybe OPEN8 re-compile terminfo files for time change so the tz name get the semicolons ??
enjoy !
3462a3463
> $tz =~ s/^://;