Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 8, 2024
1 parent 5b9dc94 commit b265464
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libs/Chroma/Generated/JsonConverters.UnixTimestamp.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit b265464

Please sign in to comment.