Skip to content

v9.1.1

Latest
Compare
Choose a tag to compare
@gpbl gpbl released this 19 Sep 13:41
· 5 commits to main since this release
d8ce7bc

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