mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 06:14:45 +01:00
Fix compile issue with commit timestamp
This commit is contained in:
@@ -180,9 +180,9 @@ tasks.register('injectGitHash') {
|
||||
|
||||
def gitCommitTime = {
|
||||
try {
|
||||
return 'git log -1 --format=%at --date=unix'.execute().text.trim()
|
||||
return 'git log -1 --format=%at --date=raw'.execute().text.trim()
|
||||
} catch (ignored) {
|
||||
return ''
|
||||
return '0'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user