From b265464a553a77eca0237b08557b7d0dcb8a0dd3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 8 Oct 2024 15:11:34 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Chroma/Generated/JsonConverters.UnixTimestamp.g.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libs/Chroma/Generated/JsonConverters.UnixTimestamp.g.cs b/src/libs/Chroma/Generated/JsonConverters.UnixTimestamp.g.cs index b90e112..91b3549 100644 --- a/src/libs/Chroma/Generated/JsonConverters.UnixTimestamp.g.cs +++ b/src/libs/Chroma/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)) {