diff options
author | erwin <erwin@FreeBSD.org> | 2006-11-23 22:04:52 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2006-11-23 22:04:52 +0800 |
commit | b2035ded432f646ea95aefc87f13a8cf6bce4ec6 (patch) | |
tree | 48607c3f070d8b5caab99390458a20d5947acb09 /Tools/scripts | |
parent | 7c93c84795514f8fd09cb8a4c8ce003943189cfc (diff) | |
download | freebsd-ports-gnome-b2035ded432f646ea95aefc87f13a8cf6bce4ec6.tar.gz freebsd-ports-gnome-b2035ded432f646ea95aefc87f13a8cf6bce4ec6.tar.zst freebsd-ports-gnome-b2035ded432f646ea95aefc87f13a8cf6bce4ec6.zip |
Replace a simple call to localtime() to strftime() to include the
timezone.
Diffstat (limited to 'Tools/scripts')
-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; |