sci2tech
Senior Member
Posts: 1,285
Joined: Jan 2007
Reputation: 23
|
RE: Help at ispcp-setup-methods.pl line 624
This only happens if local time is 31 day of the month. localtime return month as 0..11 not 1..12 Patch: Quote:Index: engine/setup/ispcp-setup-methods.pl
===================================================================
--- engine/setup/ispcp-setup-methods.pl (revision 3585)
+++ engine/setup/ispcp-setup-methods.pl (working copy)
@@ -622,7 +622,7 @@
# Get the user's default timezone
my ($sec, $min, $hour, $mday, $mon, $year, @misc) = localtime;
my $datetime = DateTime->new(
- year => $year + 1900, month => $mon, day => $mday, hour => $hour,
+ year => $year + 1900, month => $mon + 1, day => $mday, hour => $hour,
minute => $min, second => $sec, time_zone => 'local'
);
I`ll commit this in a minute.
(This post was last modified: 11-01-2010 07:11 AM by sci2tech.)
|
|
11-01-2010 07:09 AM |
|