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:
Etan Kissling 2023-05-13 06:30:49 +02:00 committed by GitHub
parent 0701038f76
commit deb5818587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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