[frontend/mfm] Display unixtime nodes in local time
This commit is contained in:
parent
14cbfaed7c
commit
a67420508f
1 changed files with 2 additions and 2 deletions
|
@ -546,8 +546,8 @@ public static partial class MfmRenderer
|
||||||
}
|
}
|
||||||
|
|
||||||
var date = DateTime.UnixEpoch.AddSeconds(timestamp);
|
var date = DateTime.UnixEpoch.AddSeconds(timestamp);
|
||||||
el.SetAttribute("datetime", date.ToString("O"));
|
el.SetAttribute("datetime", date.ToLocalTime().ToString("O"));
|
||||||
el.TextContent = date.ToString("G");
|
el.TextContent = date.ToLocalTime().ToString("G");
|
||||||
|
|
||||||
return el;
|
return el;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue