Skip to content

Commit

Permalink
PAUSE::Logger: fix an off-by-one in timestamp month
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Apr 28, 2024
1 parent bcc5b63 commit feb2e20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/PAUSE/Logger.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ sub default_logger_args {
my @time = localtime $sec;
sprintf "%4u-%02u-%02u %02u:%02u:%02u.%04u %s\n",
$time[5]+1900,
@time[4,3,2,1,0],
$time[4]+1,
@time[3,2,1,0],
int($usec/1000),
$_[0]
};
Expand Down

0 comments on commit feb2e20

Please sign in to comment.