aboutsummaryrefslogtreecommitdiff
path: root/sbosrcarch
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-25 18:02:04 -0400
committerB. Watson <yalhcru@gmail.com>2018-06-25 18:02:04 -0400
commit2813c60ecd3f434198422cd37df9fc44ca8b2c6d (patch)
treef1ef054735abe56c8cb546c686111d32da2888b5 /sbosrcarch
parent57eb6631911258c7687c2b3e75c2a50e3a92770e (diff)
downloadsbostuff-2813c60ecd3f434198422cd37df9fc44ca8b2c6d.tar.gz
sbosrcarch: STATUS timestamps in UTC
Diffstat (limited to 'sbosrcarch')
-rwxr-xr-xsbosrcarch6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbosrcarch b/sbosrcarch
index 68b5c4d..619e161 100755
--- a/sbosrcarch
+++ b/sbosrcarch
@@ -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