Use current local time Perl module, timelocal.pl is deprecated.

PR:		174357
Submitted by:	Valentin Nechayev <netch@netch.kiev.ua>
This commit is contained in:
Cy Schubert 2012-12-11 14:20:14 +00:00
parent b36b567487
commit 6e6c26d0d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308696
2 changed files with 13 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= mirror
PORTVERSION= 2.9
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= ftp
MASTER_SITES= ftp://sunsite.ualberta.ca/pub/Mirror/mirror/ \
http://komquats.com/distfiles/ \

View file

@ -0,0 +1,12 @@
--- dateconv.pl.orig 1998-05-29 12:04:32.000000000 -0700
+++ dateconv.pl 2012-12-11 06:16:24.592709834 -0800
@@ -47,7 +47,8 @@
}
-require 'timelocal.pl';
+# require 'timelocal.pl';
+use Time::Local qw(timelocal timegm);
package dateconv;
# Use timelocal rather than gmtime.