CC: | ducaijin [...] 163.com |
Subject: | $cal->hour incorrect value |
Submitted on behalf of my friend Jason Du:
I find a Date-ICal bug when I run the below coding.
#!/usr/bin/perl -w
use strict;
use Date::ICal;
my $ical = Date::ICal->new( year => 1964,
month => 10, day => 16, hour => 16,
min => 12, sec => 47);
my $year = $ical->year;
my $hour = $ical->hour;
print "year=$year\n"; #Display year=1964
print "hour=$hour\n"; #Display $hour=8. It is not correct. Why? Is it a
bug? Thank you!
Distribution name and version: Date-ICal-1.72
My perl version is: v5.8.8 built for i486-linux-gnu-thread-multi
Operating System vendor and version: Linux jason-desktop
2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux
I am looking forward to your reply.
Best wishes,
Jason