Permalink
Browse files

Applied patch in RT#53451 for negative times in Template::Plugin::Date

  • Loading branch information...
1 parent 82bb923 commit 3d63ae56dac2fa8c83f414b7844363be72f223e4 @abw committed Jan 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Template/TT2/Plugin/Date.pm
@@ -61,7 +61,7 @@ sub format {
my $gmt = @_ ? shift : ($params->{ gmt } || $self->{ gmt });
my (@date, $datestr);
- if ($time =~ /^\d+$/) {
+ if ($time =~ /^-?\d+$/) {
# $time is now in seconds since epoch
if ($gmt) {
@date = ( gmtime($time) )[0..6];

0 comments on commit 3d63ae5

Please sign in to comment.