From 82df70e79fc3e98e9e910288b4d5bd941a54858f Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Thu, 7 Apr 2022 20:53:40 +0300 Subject: [PATCH] Fix applying changed time format --- src/lib/langPack.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/langPack.ts b/src/lib/langPack.ts index 7413b796..6dc55ab7 100644 --- a/src/lib/langPack.ts +++ b/src/lib/langPack.ts @@ -114,6 +114,7 @@ namespace I18n { timeFormat = format; if(haveToUpdate) { + cachedDateTimeFormats.clear(); const elements = Array.from(document.querySelectorAll(`.i18n`)) as HTMLElement[]; elements.forEach(element => { const instance = weakMap.get(element);