Skip to content

Commit

Permalink
Added note about divergence from DateTime Scalar specification (#7407)
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-84 authored Aug 27, 2024
1 parent 13ad83b commit 2240fe8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,14 @@ scalar UUID @specifiedBy(url: "https://tools.ietf.org/html/rfc4122")

A custom GraphQL scalar which represents an exact point in time. This point in time is specified by having an offset to UTC and does not use time zone.

The DateTime scalar is based RFC3339.
The DateTime scalar is based on [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339).

```sdl
scalar DateTime @specifiedBy(url: "https://www.graphql-scalars.com/date-time/")
```

> Note: The Hot Chocolate implementation diverges slightly from the DateTime Scalar specification, and allows fractional seconds of 0-7 digits, as opposed to exactly 3.
<Video videoId="gO3bNKBmXZM" />

# .NET Scalars
Expand Down

0 comments on commit 2240fe8

Please sign in to comment.