reformat of timestamp

This commit is contained in:
Paul Wilde 2024-08-18 16:19:16 +01:00
parent 578bf97505
commit e7fdcfa937

View file

@ -11,7 +11,7 @@ const BORG_BIN = "borg"
proc genArchiveName(): string = proc genArchiveName(): string =
let hostname = getHostname() let hostname = getHostname()
let ts = getTime().format("yyyy-MM-dd'T'HH:mm:ssffffff") let ts = getTime().format("yyyy-MM-dd'T'HH:mm:ss'.'ffffff")
return hostname & "-" & ts return hostname & "-" & ts
proc genCommand(cmd: string, repo: string, others: seq[string]): string = proc genCommand(cmd: string, repo: string, others: seq[string]): string =