mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Make use of UTC dates for RPM timestamp
So they can be shared/compared by people in different timezones
This commit is contained in:
2
Makefile
2
Makefile
@@ -40,7 +40,7 @@ else
|
|||||||
ifeq ($(OS), Darwin)
|
ifeq ($(OS), Darwin)
|
||||||
DATE := $(shell date -j -f "%Y-%m-%d %H:%M:%S" "$(GIT_DATE)" +%Y%m%d%H%M)
|
DATE := $(shell date -j -f "%Y-%m-%d %H:%M:%S" "$(GIT_DATE)" +%Y%m%d%H%M)
|
||||||
else
|
else
|
||||||
DATE := $(shell date --date="$(GIT_DATE)" +%Y%m%d%H%M)
|
DATE := $(shell date --utc --date="$(GIT_DATE)" +%Y%m%d%H%M)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user