Make tests pass on systems without %s strftime specifier
[app-lastmsg.git] / t / App-Lastmsg.t
index 2439d3f1997e270331a71cce01ab374592ec380a..a9845098fc2e2632775d2d4e4251917ba8a20034 100644 (file)
@@ -5,14 +5,9 @@ use warnings;
 use Test::More tests => 2;
 BEGIN { use_ok('App::Lastmsg') };
 
-my $real_strftime = \&POSIX::strftime;
-
 {
        no warnings 'redefine';
-       *App::Lastmsg::strftime = sub {
-               my ($format, @rest) = @_;
-               $real_strftime->('%s', @rest)
-       };
+       *App::Lastmsg::format_time = sub { shift };
 }
 
 chdir 't';
This page took 0.009247 seconds and 4 git commands to generate.