From 4962c1eb125b05a74422cab7d51f4d53d6591720 Mon Sep 17 00:00:00 2001 From: Andinus Date: Tue, 17 Nov 2020 22:10:25 +0530 Subject: Fix date() It was returning incorrect time, switched to localtime(). --- leo.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leo.pl b/leo.pl index 34a518f..6ff74c2 100755 --- a/leo.pl +++ b/leo.pl @@ -9,7 +9,7 @@ use Config::Tiny; use POSIX qw(strftime); use Getopt::Long qw/ GetOptions /; -my $version = "leo v0.4.3"; +my $version = "leo v0.4.4"; # Options. my %options = ( @@ -230,4 +230,4 @@ Profile:\n}; sub tar_create { run3 ["/bin/tar", "cf", @_]; } sub tar_list { print "\n"; run3 ["/bin/tar", "tvf", @_]; print "\n";} -sub date { return strftime '%FT%T%z', gmtime() } +sub date { return strftime '%FT%T%z', localtime() } -- cgit 1.4.1-2-gfad0