Skip to content

Commit

Permalink
giving meaningful name for proc that returns string with readable utc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status committed Sep 9, 2024
1 parent b858203 commit 44bff5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chronicles/log_output.nim
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ macro append*(o: var AnyOutput,
result.add newCall("append", o, arg2)
for arg in restArgs: result.add newCall("append", o, arg)

proc epochTimestampReadable(): string =
proc utcReadable(): string =
getTime().utc().format("yyyy-MM-dd HH:mm:ss'.'fffzzz")

proc epochTimestamp(): string =
Expand Down Expand Up @@ -481,7 +481,7 @@ template timestamp(record): string =
when record.timestamps == RfcTime:
getFastDateTimeString()
elif record.timestamps == RfcUtcTime:
epochTimestampReadable()
utcReadable()
else:
epochTimestamp()

Expand Down

0 comments on commit 44bff5d

Please sign in to comment.