pad time in log

This commit is contained in:
Nicolò Balzarotti 2018-09-18 09:29:09 +02:00
parent 2bee38d4af
commit 4dea26615b
1 changed files with 1 additions and 1 deletions

View File

@ -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