Skip to content

Instantly share code, notes, and snippets.

@deviationist
Last active August 23, 2024 06:48
Show Gist options
  • Save deviationist/30ecf5ed70634f4c071fa623b95c2b1c to your computer and use it in GitHub Desktop.
Save deviationist/30ecf5ed70634f4c071fa623b95c2b1c to your computer and use it in GitHub Desktop.
An example of how a value for a richDate-field looks like in Sanity.
{
exampleField: {
_type: 'richDate',
local: '2024-03-12T00:00:00+01:00',
offset: 60,
utc: '2024-03-11T23:00:00.000Z',
timezone: 'Europe/Oslo'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment