diff options
| author | Andinus <andinus@nand.sh> | 2020-11-17 22:10:25 +0530 |
|---|---|---|
| committer | Andinus <andinus@nand.sh> | 2020-11-17 22:10:25 +0530 |
| commit | 4962c1eb125b05a74422cab7d51f4d53d6591720 (patch) | |
| tree | 909fc5efb4a5b619046bca27838f07d61216238c | |
| parent | 8d98d15e8e3887d4c36f7e4beaabf645a7eace0e (diff) | |
| download | leo-4962c1eb125b05a74422cab7d51f4d53d6591720.tar.gz | |
Fix date()v0.4.4
It was returning incorrect time, switched to localtime().
| -rwxr-xr-x | leo.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() } |