Skip to content

Commit dd1e1a4

Browse files
CraigMortonCraig Morton
andauthored
fix(date-fns localizer): display dayFormat correctly (jquense#1633)
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 <[email protected]>
1 parent e8609af commit dd1e1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/localizers/date-fns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let weekRangeFormat = ({ start, end }, culture, local) =>
2222

2323
export let formats = {
2424
dateFormat: 'dd',
25-
dayFormat: 'dd ddd',
25+
dayFormat: 'dd eee',
2626
weekdayFormat: 'cccc',
2727

2828
selectRangeFormat: timeRangeFormat,

0 commit comments

Comments
 (0)