[Rt-commit] rt branch, 3.8-trunk, updated. eee9751c17526df5505748c947716e4aec2413f5
sartak at bestpractical.com
sartak at bestpractical.com
Mon Jul 13 03:26:44 EDT 2009
The branch, 3.8-trunk has been updated
via eee9751c17526df5505748c947716e4aec2413f5 (commit)
from 167e3163961614dcbbae8954f41d6f2b400cdaa5 (commit)
Summary of changes:
bin/rt.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit eee9751c17526df5505748c947716e4aec2413f5
Author: Shawn M Moore <sartak at gmail.com>
Date: Mon Jul 13 03:26:21 2009 -0400
Fix from youam on IRC for a 0-11/1-12 month mismatch
diff --git a/bin/rt.in b/bin/rt.in
index ac1dd02..aa3ac33 100755
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -1640,7 +1640,7 @@ sub str2time {
($monstr, $day, $hr, $min, $sec, $yr) = ($1, $2, $3, $4, $5, $6);
$mon = $month{$monstr} if exists $month{$monstr};
} elsif ( /(\d{4})-(\d\d)-(\d\d)\s+(\d\d):(\d\d):(\d\d)/ ) {
- ($yr, $mon, $day, $hr, $min, $sec) = ($1, $2, $3, $4, $5, $6);
+ ($yr, $mon, $day, $hr, $min, $sec) = ($1, $2-1, $3, $4, $5, $6);
}
if ( $yr and defined $mon and $day and defined $hr and defined $sec ) {
return timelocal($sec,$min,$hr,$day,$mon,$yr);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list