Fixed date format function.
h3rald h3rald@h3rald.com
Mon, 06 Feb 2017 20:34:42 +0000
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
lib/logger.nim
→
lib/logger.nim
@@ -7,9 +7,9 @@ types
proc currentTime*(plain = false): string = if plain: - return getTime().getGMTime().format("yyyy-MM-dd' @ 'hh:mm:ss") + return getTime().getGMTime().format("yyyy-MM-dd' @ 'HH:mm:ss") else: - return getTime().getGMTime().format("yyyy-MM-dd'T'hh:mm:ss'Z'") + return getTime().getGMTime().format("yyyy-MM-dd'T'HH:mm:ss'Z'") proc msg(logger: Logger, kind, message: string, params: varargs[string, `$`]) = let s = format(message, params)