Sanity datetime schema type displaying incorrect day of week

4 replies
Last updated: Jan 22, 2024
Seems like the
datetime
schema type is displaying wrong days. 15th of june in 2024 should be on a saturday and not a sunday. Not sure who to reach out to here
AI Update

You're absolutely right - June 15, 2024 was a Saturday, not a Sunday. That's definitely concerning if your datetime picker is showing the wrong day of the week.

What you're experiencing:

This sounds like it could be a bug with the calendar display in Sanity Studio's datetime input. The datetime schema type uses a date picker component that displays a calendar, and if the day-of-week labels are misaligned, it would show dates on the wrong days.

Important clarification:

If this is a display bug in the calendar picker itself, it's worth checking whether the actual date values being stored are correct. You can verify this by:

  1. Looking at the raw data in your dataset (via Vision or API queries)
  2. Checking if the ISO date string stored is 2024-06-15 (which would be correct)

Often these UI bugs affect only the visual calendar labels, not the underlying data values.

Where to report this:

Since this appears to be a bug with Sanity Studio itself, here's where you should reach out:

  1. GitHub Issues - This is the best place to report bugs. You can search existing issues first to see if anyone else has reported this, and if not, create a new issue with details about:

    • Your Sanity Studio version (sanity --version)
    • Browser and OS
    • Screenshots showing the incorrect day labels
  2. Sanity Community Slack - Join the community Slack for faster responses from both Sanity team members and other community members who might have encountered this

  3. Support channels - If you're on a paid plan, you can also reach out through your dedicated support channels

Quick troubleshooting:

Before reporting, try:

  • Updating to the latest Studio version: npm update sanity
  • Clearing your browser cache
  • Testing in a different browser

This will help determine if it's already been fixed in a newer version or if it's a browser-specific issue. Either way, the Sanity team will want to know about this so they can investigate!

Show original thread
4 replies
Weird, it is OK for me. I've tried with different timezones ..
Are you on an outdated version of the Studio?
Upgrade worked. I was on 3. Thanks πŸ™
Excellent.

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?