pad time in log
This commit is contained in:
parent
2bee38d4af
commit
4dea26615b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue