[frontend/mfm] Display unixtime nodes in local time

This commit is contained in:
pancakes 2024-12-23 16:31:59 +10:00 committed by Iceshrimp development
parent 14cbfaed7c
commit a67420508f

View file

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