From 4dea26615bac8b308b9b757a40064a56fdef7f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Tue, 18 Sep 2018 09:29:09 +0200 Subject: [PATCH] pad time in log --- src/types.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.jl b/src/types.jl index e4e5a63..00cd6f8 100644 --- a/src/types.jl +++ b/src/types.jl @@ -67,7 +67,7 @@ function Base.show(io::IO, m::MatrixMsg; muser::Union{Nothing,MatrixUser} = noth d = Dates.epochms2datetime(m.timestamp + Dates.datetime2epochms(Dates.unix2datetime(0))) dtfmt = if Dates.Hour(now()) - Dates.Hour(d) < Dates.Hour(24) - string(hour(d), ":", minute(d)) + string(string(hour(d),pad=2), ":", string(minute(d),pad=2)) else string(day(d), " ", Dates.monthabbr(d)) end