summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/icli5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/icli b/bin/icli
index f60dd5e..533e514 100755
--- a/bin/icli
+++ b/bin/icli
@@ -69,6 +69,11 @@ sub with_colour {
sub pretty_date {
my ($unix) = @_;
+
+ if ($unix == 0) {
+ return 'never';
+ }
+
return time2str('%Y-%m-%d %H:%M:%S', $unix);
}