Skip to content

Commit

Permalink
fix: correct luxon localizer formatting (jquense#2172)
Browse files Browse the repository at this point in the history
  • Loading branch information
inshatan authored Apr 18, 2022
1 parent abe167e commit b130351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/localizers/luxon.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function (DateTime, { firstDayOfWeek = 7 } = {}) {
}

function formatDateWithCulture(value, culture, format) {
return DateTime.fromJSDate(value).setLocale(culture).format(format)
return DateTime.fromJSDate(value).setLocale(culture).toFormat(format)
}

/*** BEGIN localized date arithmetic methods with Luxon ***/
Expand Down

0 comments on commit b130351

Please sign in to comment.