pad time in log
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 +
|
d = Dates.epochms2datetime(m.timestamp +
|
||||||
Dates.datetime2epochms(Dates.unix2datetime(0)))
|
Dates.datetime2epochms(Dates.unix2datetime(0)))
|
||||||
dtfmt = if Dates.Hour(now()) - Dates.Hour(d) < Dates.Hour(24)
|
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
|
else
|
||||||
string(day(d), " ", Dates.monthabbr(d))
|
string(day(d), " ", Dates.monthabbr(d))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue