date --"an hour ago" in a way compatible with both GNU and BSD

This commit is contained in:
Pierre Boutillier 2018-05-30 12:39:35 +02:00 committed by Grégoire Henry
parent cf9d26740c
commit d9c5549ae2

View File

@ -230,7 +230,7 @@ activate_alpha() {
with fitness 1 \
and key dictator \
and parameters "${parameters_file}" \
--timestamp $(date --utc --date="@$(($(date +%s) - 3600))" +"%FT%TZ")
--timestamp $(TZ='AAA+1' date +%FT%TZ)
}