mirror of
https://github.com/starr-dusT/tzdb_to_nx
synced 2024-03-05 21:18:52 -08:00
Merge pull request #6 from Termynat0r/main
macOS fix for commit #394741
This commit is contained in:
commit
b2ab6aca9d
@ -24,9 +24,15 @@ execute_process(
|
||||
|
||||
string(REPLACE "\n" "" TZ_COMMIT_TIME "${TZ_COMMIT_TIME}")
|
||||
|
||||
if (APPLE)
|
||||
set(VERSION_COMMAND ${GNU_DATE} -r ${TZ_COMMIT_TIME} +%y%m%d)
|
||||
else ()
|
||||
set(VERSION_COMMAND ${GNU_DATE} +%y%m%d --date=@${TZ_COMMIT_TIME})
|
||||
endif ()
|
||||
|
||||
execute_process(
|
||||
COMMAND
|
||||
${GNU_DATE} +%y%m%d --date=@${TZ_COMMIT_TIME}
|
||||
${VERSION_COMMAND}
|
||||
OUTPUT_VARIABLE
|
||||
TZDB_VERSION
|
||||
COMMAND_ERROR_IS_FATAL ANY)
|
||||
|
Loading…
Reference in New Issue
Block a user