Browse Source

OS agnostic date conversion

pull/221/head
Alex Peters 1 year ago
parent
commit
3859105bda
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bin/gbuild

+ 1
- 1
bin/gbuild View File

@@ -143,7 +143,7 @@ EOF" if build_desc["sudo"] and @options[:allow_sudo]
build_desc["remotes"].each do |remote|
dir = sanitize(remote["dir"], remote["dir"])

author_date = `cd inputs/#{dir} && git log --format=@%at -1 | date +"%F %T" -u -f -`.strip
author_date = `cd inputs/#{dir} && TZ=UTC git log --date='format-local:%F %T' --format="%ad" -1`.strip
raise "error looking up author date in #{dir}" unless $?.exitstatus == 0

system! "copy-to-target #{@quiet_flag} inputs/#{dir} build/"

Loading…
Cancel
Save