From: Barijaona Ramaholimihaso Date: Mon, 24 Sep 2007 16:21:10 +0000 (+0000) Subject: Avoid use of module Time::localtime X-Git-Tag: v2_1_0~46 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=commitdiff_plain;h=d3b78ea0102bb3086d4e356b3956d3fe2de68e60 Avoid use of module Time::localtime --- diff --git a/blosxom.cgi b/blosxom.cgi index 1506f94..5d2d6e6 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -84,7 +84,6 @@ use strict; use FileHandle; use File::Find; use File::stat; -use Time::localtime; use Time::Local; use CGI qw/:standard :netscape/; @@ -692,7 +691,7 @@ sub generate { sub nice_date { my ($unixtime) = @_; - my $c_time = ctime($unixtime); + my $c_time = CORE::localtime($unixtime); my ( $dw, $mo, $da, $hr, $min, $yr ) = ( $c_time =~ /(\w{3}) +(\w{3}) +(\d{1,2}) +(\d{2}):(\d{2}):\d{2} +(\d{4})$/