diff --git a/README.md b/README.md index 1f8511b..ed38741 100644 --- a/README.md +++ b/README.md @@ -392,7 +392,7 @@ Possible values are: https://en.wikipedia.org/wiki/Unix_time -- `UnixTimeReadable` +- `RfcUtcTime` Chronicles will use the UTC but in human-readable format specified in RFC 3339: Date and Time on the Internet: Timestamps diff --git a/chronicles/log_output.nim b/chronicles/log_output.nim index 4f79f28..57ea696 100644 --- a/chronicles/log_output.nim +++ b/chronicles/log_output.nim @@ -480,7 +480,7 @@ proc getFastDateTimeString(): string = template timestamp(record): string = when record.timestamps == RfcTime: getFastDateTimeString() - elif record.timestamps == UnixTimeReadable: + elif record.timestamps == RfcUtcTime: epochTimestampReadable() else: epochTimestamp() diff --git a/chronicles/options.nim b/chronicles/options.nim index 6b8548b..4adf75e 100644 --- a/chronicles/options.nim +++ b/chronicles/options.nim @@ -258,7 +258,7 @@ proc sinkSpecsFromNode*(streamNode: NimNode): seq[SinkSpec] = of "notimestamps": setTimestamps(NoTimestamps) of "unixtime": setTimestamps(UnixTime) of "rfctime": setTimestamps(RfcTime) - of "unixtimereadable": setTimestamps(UnixTimeReadable) + of "rfcutctime": setTimestamps(RfcUtcTime) else: discard let dst = logDestinationFromNode(dstSpec)