mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
git commit date fix
This commit is contained in:
parent
c009a6f7d4
commit
9fc51a51bd
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ function getGitInfo(dir: string): { lastCommitDate: number; revision: string } {
|
||||||
.toString()
|
.toString()
|
||||||
.trim()
|
.trim()
|
||||||
|
|
||||||
return { lastCommitDate: +lastCommitDate, revision: revision }
|
return { lastCommitDate: +lastCommitDate * 1000, revision: revision }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return { lastCommitDate: 0, revision: 'Failed to get revision' }
|
return { lastCommitDate: 0, revision: 'Failed to get revision' }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue