projects
/
matthijs
/
upstream
/
blosxom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid use of module Time::localtime
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index 1506f94443e0eabb079bd210cae7066a661d393b..5d2d6e6da1d07c8e50ccc3d2684e1a2763755a60 100755
(executable)
--- a/
blosxom.cgi
+++ b/
blosxom.cgi
@@
-84,7
+84,6
@@
use strict;
use FileHandle;
use File::Find;
use File::stat;
use FileHandle;
use File::Find;
use File::stat;
-use Time::localtime;
use Time::Local;
use CGI qw/:standard :netscape/;
use Time::Local;
use CGI qw/:standard :netscape/;
@@
-692,7
+691,7
@@
sub generate {
sub nice_date {
my ($unixtime) = @_;
sub nice_date {
my ($unixtime) = @_;
- my $c_time =
c
time($unixtime);
+ my $c_time =
CORE::local
time($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})$/
my ( $dw, $mo, $da, $hr, $min, $yr )
= ( $c_time
=~ /(\w{3}) +(\w{3}) +(\d{1,2}) +(\d{2}):(\d{2}):\d{2} +(\d{4})$/