common/wrappers/date.sh: use utc, fix escaping

This commit is contained in:
Enno Boland 2016-03-03 16:45:46 +01:00
parent dabde86036
commit e47bcaa55a

View file

@ -1,6 +1,6 @@
#!/bin/sh
if [ "$SOURCE_DATE_EPOCH" ]; then
post="--date @$SOURCE_DATE_EPOCH"
post="--utc --date @$SOURCE_DATE_EPOCH"
fi
exec /usr/bin/date $@ $post
exec /usr/bin/date "$@" $post