Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rather use 3600

  • Loading branch information...
commit 5b5624184293d98d048aca00d6b1f6e5f854b65d 1 parent c70f72d
@miyagawa miyagawa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Plack/Middleware/AccessLog.pm
View
2  lib/Plack/Middleware/AccessLog.pm
@@ -18,7 +18,7 @@ use Time::Local ();
my $tzoffset = POSIX::strftime("%z", localtime) !~ /^[+-]\d{4}$/ && do {
my @t = localtime(time);
my $s = Time::Local::timegm(@t) - Time::Local::timelocal(@t);
- sprintf '%+03d%02u', int($s/60/60), $s % (60*60)
+ sprintf '%+03d%02u', int($s/3600), $s % 3600;
};
sub call {
Please sign in to comment.
Something went wrong with that request. Please try again.