Skip to content

Commit

Permalink
higher precision times require Time::Local 1.2000
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 23, 2014
1 parent 4ba2df0 commit ea12f3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.PL
Expand Up @@ -6,6 +6,7 @@ use warnings;
use ExtUtils::MakeMaker;

# Pod::Simple 3.09 first shipped with Perl 5.11.2
# Time::Local 1.2000 first shipped with Perl 5.13.9
WriteMakefile(
NAME => 'Mojolicious',
VERSION_FROM => 'lib/Mojolicious.pm',
Expand All @@ -23,7 +24,7 @@ WriteMakefile(
},
no_index => {directory => ['t']}
},
PREREQ_PM => {'Pod::Simple' => '3.09'},
PREREQ_PM => {'Pod::Simple' => '3.09', 'Time::Local' => '1.2000'},
EXE_FILES => ['script/hypnotoad', 'script/mojo', 'script/morbo'],
test => {TESTS => 't/*.t t/*/*.t'}
);
2 changes: 1 addition & 1 deletion lib/Mojo/Date.pm
Expand Up @@ -2,7 +2,7 @@ package Mojo::Date;
use Mojo::Base -base;
use overload bool => sub {1}, '""' => sub { shift->to_string }, fallback => 1;

use Time::Local 'timegm';
use Time::Local 1.2000 'timegm';

has epoch => sub {time};

Expand Down

0 comments on commit ea12f3e

Please sign in to comment.