The current master bin/gbuild fails on OSX (Mojave) when formatting the author_date.
The following error is displayed:
...
date: illegal time format
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
bin/gbuild:147:in `block (2 levels) in build_one_configuration': error looking up author date in ... (RuntimeError)
Problem: Fails on OSX
The current master
bin/gbuild
fails on OSX (Mojave) when formatting theauthor_date
.The following error is displayed:
Reason
The OSX
date
does not support the give arguments.Solution
Instead of working with the
date
command and incompatibilities, the proposed solution builds ongit
only:TZ=UTC
- set local timezone to UTC--date
%ad
-author date (format respects --date= option)This converts the author date into UTC and the same destination format:
2019-04-30 11:51:51
Tested with