Skip to content

Commit

Permalink
fix(date-fns localizer): display dayFormat correctly (jquense#1633)
Browse files Browse the repository at this point in the history
Previous format string displayed a day as '13 013' when using date-fns, rather than '13 Fri' as
RBC would with the moment localizer.

Co-authored-by: Craig Morton <craig@skibro.com>
  • Loading branch information
CraigMorton and Craig Morton authored Apr 9, 2020
1 parent e8609af commit dd1e1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/localizers/date-fns.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let weekRangeFormat = ({ start, end }, culture, local) =>

export let formats = {
dateFormat: 'dd',
dayFormat: 'dd ddd',
dayFormat: 'dd eee',
weekdayFormat: 'cccc',

selectRangeFormat: timeRangeFormat,
Expand Down

0 comments on commit dd1e1a4

Please sign in to comment.