all repos — litestore @ b9a060086b5c107a329d441e74067e199cc17806

A minimalist nosql document store.

Fixed date format function.
h3rald h3rald@h3rald.com
Mon, 06 Feb 2017 20:34:42 +0000
commit

b9a060086b5c107a329d441e74067e199cc17806

parent

adbbdf86f5fd87ad9ee9df35b1a635855c8baf50

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M lib/logger.nimlib/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)