Skip to content

Commit b130351

Browse files
authored
fix: correct luxon localizer formatting (#2172)
1 parent abe167e commit b130351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/localizers/luxon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function (DateTime, { firstDayOfWeek = 7 } = {}) {
6363
}
6464

6565
function formatDateWithCulture(value, culture, format) {
66-
return DateTime.fromJSDate(value).setLocale(culture).format(format)
66+
return DateTime.fromJSDate(value).setLocale(culture).toFormat(format)
6767
}
6868

6969
/*** BEGIN localized date arithmetic methods with Luxon ***/

0 commit comments

Comments
 (0)