projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e76d0e
)
Fix timezone parsing
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 4 Oct 2010 05:40:35 +0000
(22:40 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 4 Oct 2010 05:40:35 +0000
(22:40 -0700)
mailboxes/boxes-lib.pl
patch
|
blob
|
history
diff --git
a/mailboxes/boxes-lib.pl
b/mailboxes/boxes-lib.pl
index
f914b29
..
19ea8cd
100755
(executable)
--- a/
mailboxes/boxes-lib.pl
+++ b/
mailboxes/boxes-lib.pl
@@
-2558,7
+2558,7
@@
my $rv = eval {
}
elsif ($str =~ /^(\S+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+(\d+)\s+(\S+)/) {
# Format like Dec 7 12:58:52 2004 GMT
- local $tm = time
local
($5, $4, $3, $2, &month_to_number($1),
+ local $tm = time
gm
($5, $4, $3, $2, &month_to_number($1),
$6 < 50 ? $6+100 : $6 < 1000 ? $6 : $6-1900);
local $tz = $7;
if ($tz =~ /^(\-|\+)?\d+$/) {