Closed smt116 closed 8 months ago
Somehow this fell off my radar, sorry. Ultimately datetime formatting is done by absinthe. I think you are using the backwards compatibility option:
config :ash, :utc_datetime_type, :naive_datetime
That should be set to :datetime
which will get you a properly formatted datetime.
I have an attribute that is
utc_datetime_usec
on the resource side. That resource can be accessed by the GraphQL API consumer. It behaves properly in the iex console:However, the GraphQL result is missing the UTC suffix:
which breaks frontend code that tries to parse it into a dayjs object.