diff --git a/src/libs/Forem/Generated/JsonConverters.UnixTimestamp.g.cs b/src/libs/Forem/Generated/JsonConverters.UnixTimestamp.g.cs index 2680796..d542752 100644 --- a/src/libs/Forem/Generated/JsonConverters.UnixTimestamp.g.cs +++ b/src/libs/Forem/Generated/JsonConverters.UnixTimestamp.g.cs @@ -15,7 +15,12 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization { if (reader.TryGetInt64(out long unixTimestamp)) { - return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp); + if (unixTimestamp >= -62135596800L && unixTimestamp <= 253402300799L) + { + return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp); + } + + return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp); } if (reader.TryGetInt32(out int unixTimestampInt)) {