Shorter and longer version of the build timestamp
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-01-18 20:10:03 +01:00
parent 42af53c190
commit 41a0a2b37c
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,8 @@ set(XTOS_COMPATIBLE_BUILD "9600")
# Set common XTOS version variables
string(TIMESTAMP XTOS_VERSION_YEAR %Y)
string(TIMESTAMP XTOS_VERSION_DATE "%d/%m/%Y %H:%M UTC" UTC)
string(TIMESTAMP XTOS_VERSION_DATE "%Y%m%d")
string(TIMESTAMP XTOS_VERSION_FULLDATE "%d/%m/%Y %H:%M UTC" UTC)
# Set latest GIT revision
set(XTOS_VERSION_HASH "unknown")

View File

@ -17,6 +17,7 @@
#define XTOS_VERSION_ARCH "@ARCH@"
#define XTOS_VERSION_DATE "@XTOS_VERSION_DATE@"
#define XTOS_VERSION_FULLDATE "@XTOS_VERSION_FULLDATE@"
#define XTOS_VERSION_YEAR "@XTOS_VERSION_YEAR@"
#define XTOS_COMPATIBLE_MAJOR @XTOS_COMPATIBLE_MAJOR@