diff options
-rwxr-xr-x | sbosrcarch | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1706,7 +1706,8 @@ sub write_status_file { my $content = shift; init_git(); - open my $fh, "git log --date=format:%Y%m%d --pretty=format:'%h %ci: %an, %s' -n1|" or die "$!"; + #open my $fh, "git log --date=format:%Y%m%d --pretty=format:'%h %ci: %an, %s' -n1|" or die "$!"; + open my $fh, "TZ=UTC git log --date=format:%Y%m%d --pretty=format:'%h %ci: %an, %s' -n1|" or die "$!"; my $logline = <$fh>; close $fh; @@ -1714,7 +1715,8 @@ sub write_status_file { rename("STATUS", "STATUS.old"); # ignore errors open($fh, '>', "STATUS") or return; - chomp(my $timestamp = `date '+%Y-%m-%d %H:%M:%S %z'`); + #chomp(my $timestamp = `date '+%Y-%m-%d %H:%M:%S %z'`); + chomp(my $timestamp = `TZ=UTC date '+%Y-%m-%d %H:%M:%S %z'`); print $fh <<EOF; Status report for sbosrcarch archive |