From b130351966fa6a3870607bbb78394db11a10915b Mon Sep 17 00:00:00 2001 From: inshatan <46357926+inshatan@users.noreply.github.com> Date: Mon, 18 Apr 2022 14:59:39 +0300 Subject: [PATCH] fix: correct luxon localizer formatting (#2172) --- src/localizers/luxon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localizers/luxon.js b/src/localizers/luxon.js index cf64212bd..03488d5ee 100644 --- a/src/localizers/luxon.js +++ b/src/localizers/luxon.js @@ -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 ***/