diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2006-11-23 14:04:52 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2006-11-23 14:04:52 +0000 |
commit | 596b15845d88d3e6efffed7e95a0d38e1f2dff26 (patch) | |
tree | 595a9e48eabe69ad20d7d45b19d7431464eebce8 /Tools/scripts/chkversion.pl | |
parent | 43b7e326cce91cdfdf5c792b0cc3447ca6db311d (diff) | |
download | ports-596b15845d88d3e6efffed7e95a0d38e1f2dff26.tar.gz ports-596b15845d88d3e6efffed7e95a0d38e1f2dff26.zip |
Replace a simple call to localtime() to strftime() to include the
timezone.
Notes
Notes:
svn path=/head/; revision=177903
Diffstat (limited to 'Tools/scripts/chkversion.pl')
-rwxr-xr-x | Tools/scripts/chkversion.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/scripts/chkversion.pl b/Tools/scripts/chkversion.pl index 7593b60acedf..e361244284c4 100755 --- a/Tools/scripts/chkversion.pl +++ b/Tools/scripts/chkversion.pl @@ -66,6 +66,7 @@ require 5.005; use strict; +use POSIX; use File::Find; use Cwd 'abs_path'; @@ -103,7 +104,7 @@ $portsdir = abs_path($portsdir); my $versionfile = "$versiondir/VERSIONS"; my $useindex = !-w $versiondir; -my $starttime = localtime(); +my $starttime = strftime("%a %b %e %G %k:%M:%S %Z",localtime); sub readfrom { my $dir = shift; |