about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-11-17 22:10:25 +0530
committerAndinus <andinus@nand.sh>2020-11-17 22:10:25 +0530
commit4962c1eb125b05a74422cab7d51f4d53d6591720 (patch)
tree909fc5efb4a5b619046bca27838f07d61216238c
parent8d98d15e8e3887d4c36f7e4beaabf645a7eace0e (diff)
downloadleo-4962c1eb125b05a74422cab7d51f4d53d6591720.tar.gz
Fix date() v0.4.4
It was returning incorrect time, switched to localtime().
-rwxr-xr-xleo.pl4
1 files 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() }