npm react-day-picker 9.1.1
v9.1.1

latest releases: 9.11.1, 9.11.0, 9.10.0...
14 months ago

This release improves reliability for controlled mode and adds experimental support for time zones.

Time Zone Support

By integrating the @date-fns/tz utilities for handling time zones, we have added a new experimental timeZone prop. Please see the updated docs for more details.

import { DayPicker, TZDate } from 'react-day-picker';
<DayPicker 
    timeZone="Europe/Athens"  // set the time zone
    disabled={TZDate.tz("Europe/Athens")}  // make sure you use `TZDate` to initialize dates
/> 

Note

If you were using the experimental react-day-picker/utc module, you can skip now it. Remove the @date-fns/utc package and just pass timeZone="UTC" to <DayPicker />.

What's Changed

  • fix: make sure internal state is not updated in controlled mode by @gpbl in #2473
  • feat: new timeZone prop (experimental) by @gpbl in #2467
  • feat: export locales from react-day-picker/locale by @gpbl in #2474

Full Changelog: v9.1.0...v9.1.1

Don't miss a new react-day-picker release

NewReleases is sending notifications on new releases.