aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-25 18:05:27 -0400
committerB. Watson <yalhcru@gmail.com>2018-06-25 18:05:27 -0400
commit0779c6bfa40cb39361c47f019962571ad6eb5a33 (patch)
tree5c604070fa1126a34f7bcdd69988caa9a0afc646
parent2813c60ecd3f434198422cd37df9fc44ca8b2c6d (diff)
downloadsbostuff-0779c6bfa40cb39361c47f019962571ad6eb5a33.tar.gz
sbosrcarch: STATUS timestamps again
-rwxr-xr-xsbosrcarch4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbosrcarch b/sbosrcarch
index 619e161..aaab775 100755
--- a/sbosrcarch
+++ b/sbosrcarch
@@ -1707,7 +1707,7 @@ sub write_status_file {
init_git();
#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 "$!";
+ open my $fh, "TZ=UTC git log --date=format-local:'%Y-%m-%d %H:%M:%S %Z' --pretty=format:'%h %cd: %an, %s' -n1" or die "$!";
my $logline = <$fh>;
close $fh;
@@ -1716,7 +1716,7 @@ sub write_status_file {
open($fh, '>', "STATUS") or return;
#chomp(my $timestamp = `date '+%Y-%m-%d %H:%M:%S %z'`);
- chomp(my $timestamp = `TZ=UTC 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