Skip to content

Commit

Permalink
Merge pull request #18 from tryAGI/bot/update-openapi_202410081519
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 8, 2024
2 parents 190930c + fde2403 commit 590e3e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libs/Instill/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 590e3e2

Please sign in to comment.