A
Ami
Hi All,
I am using Windows Vista with ActivePerl 5.8.8.822. I have
downloaded the latest DateTime::TimeZone package from CPAN (DateTime-
TimeZone-0.67). When I write a small script to work with it, I always
get error stating that "Cannot determine local time zone.". After
debugging, I came to know that DateTime package of Perl reads the
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
\TimeZoneInformation\StandardName" to access this information which is
supposed to contain a Windows name for the time zone (e.g.) but in
Windows Vista, it contains some dll entry point information
(@tzres.dll,-492).
The code snippet with which I am trying to work is as follows:
use DateTime::TimeZone;
my $tz = DateTime::TimeZone->new( name => 'local' );
$tz = DateTime::TimeZone::Local->TimeZone();
Can any one help me to make it working on Windows Vista?
Thanks in advance for your help and time.
Regards
I am using Windows Vista with ActivePerl 5.8.8.822. I have
downloaded the latest DateTime::TimeZone package from CPAN (DateTime-
TimeZone-0.67). When I write a small script to work with it, I always
get error stating that "Cannot determine local time zone.". After
debugging, I came to know that DateTime package of Perl reads the
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
\TimeZoneInformation\StandardName" to access this information which is
supposed to contain a Windows name for the time zone (e.g.) but in
Windows Vista, it contains some dll entry point information
(@tzres.dll,-492).
The code snippet with which I am trying to work is as follows:
use DateTime::TimeZone;
my $tz = DateTime::TimeZone->new( name => 'local' );
$tz = DateTime::TimeZone::Local->TimeZone();
Can any one help me to make it working on Windows Vista?
Thanks in advance for your help and time.
Regards