use compile-time year in `--version` copyright (#4946)
Instead of using current runtime year, use compile-time year in notice. ``` nimbus_beacon_node --version ```
This commit is contained in:
parent
0701038f76
commit
deb5818587
|
@ -11,11 +11,11 @@
|
|||
|
||||
import std/[strutils, compilesettings]
|
||||
|
||||
when not defined(nimscript):
|
||||
import times
|
||||
let copyrights* = "Copyright (c) 2019-" & $(now().utc.year) & " Status Research & Development GmbH"
|
||||
|
||||
const
|
||||
compileYear = CompileDate[0 ..< 4] # YYYY-MM-DD (UTC)
|
||||
copyrights* =
|
||||
"Copyright (c) 2019-" & compileYear & " Status Research & Development GmbH"
|
||||
|
||||
versionMajor* = 23
|
||||
versionMinor* = 5
|
||||
versionBuild* = 0
|
||||
|
|
Loading…
Reference in New Issue