Current time: 12-23-2024, 08:24 AM Hello There, Guest! (LoginRegister)


Post Reply 
Help at ispcp-setup-methods.pl line 624
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
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 Wink 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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Help at ispcp-setup-methods.pl line 624 - Nuxwin - 11-01-2010, 06:25 AM
RE: Help at ispcp-setup-methods.pl line 624 - sci2tech - 11-01-2010 07:09 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)