[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);
|
||||
el.SetAttribute("datetime", date.ToString("O"));
|
||||
el.TextContent = date.ToString("G");
|
||||
el.SetAttribute("datetime", date.ToLocalTime().ToString("O"));
|
||||
el.TextContent = date.ToLocalTime().ToString("G");
|
||||
|
||||
return el;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue