Skip Menu |

This queue is for tickets about the Date-ICal CPAN distribution.

Report information
The Basics
Id: 39173
Status: open
Priority: 0/
Queue: Date-ICal

People
Owner: Nobody in particular
Requestors: cdavaz [...] gmail.com
Cc: ducaijin [...] 163.com
AdminCc:

Bug Information
Severity: Important
Broken in: 1.72
Fixed in: (no value)



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
Subject: Re: [rt.cpan.org #39173] $cal->hour incorrect value
Date: Wed, 10 Sep 2008 22:06:58 -0400
To: bug-Date-ICal [...] rt.cpan.org
From: Rich Bowen <rbowen [...] rcbowen.com>
I expect it's a timezone thing. I'm not sure. Meanwhile, consider using the DateTime modules instead, as the are actively developed and this module is not. --Rich On Sep 10, 2008, at 21:52, Chris Davaz via RT wrote: Show quoted text
> Wed Sep 10 21:52:20 2008: Request 39173 was acted upon. > Transaction: Ticket created by DAVAZ > Queue: Date-ICal > Subject: $cal->hour incorrect value > Broken in: 1.72 > Severity: Important > Owner: Nobody > Requestors: cdavaz@gmail.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=39173 > > > > 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 >
-- "Books to the ceiling, Books to the sky, My pile of books is a mile high. How I love them! How I need them! I'll have a long beard by the time I read them." -- Arnold Lobel