summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/icli6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/icli b/bin/icli
index 7e6b0bc..9be3de2 100755
--- a/bin/icli
+++ b/bin/icli
@@ -10,9 +10,9 @@ use 5.010;
no if $] >= 5.018, warnings => "experimental::smartmatch";
use Carp qw(croak);
-use Date::Format;
use Getopt::Long qw/:config bundling/;
use List::MoreUtils qw(any firstval);
+use POSIX qw(strftime);
use Term::ANSIColor;
use Term::Size;
@@ -86,7 +86,7 @@ sub pretty_date {
return 'never';
}
- return time2str( '%Y-%m-%d %H:%M:%S', $unix );
+ return strftime( '%Y-%m-%d %H:%M:%S', localtime($unix) );
}
sub pretty_duration {
@@ -1300,8 +1300,6 @@ None.
=item * autodie (included with perl >= 5.10.1)
-=item * Date::Format
-
=item * Term::Size
=back