diff --git a/pos-module-chat/modules/chat/public/assets/js/pos-chat.js b/pos-module-chat/modules/chat/public/assets/js/pos-chat.js index 5fa692b..d0c4bc0 100644 --- a/pos-module-chat/modules/chat/public/assets/js/pos-chat.js +++ b/pos-module-chat/modules/chat/public/assets/js/pos-chat.js @@ -43,10 +43,10 @@ window.pos.modules.chat = function(userSettings = {}){ try { // the back-end returns the timezone formatted not according to tz identifier, so I'm going to risk the 'replace' here to make it work with .toLocaleString automatically - timezonedDate = date.toLocaleString('en-US', { day: 'numeric', weekday: 'short', year: 'numeric', month: 'short', hour: 'numeric', minute: 'numeric', hour12: true, timeZone: window.pos.profile.timezone.friendly_name_with_region.replace(' - ', '/') }); + timezonedDate = date.toLocaleString('en-US', { day: 'numeric', weekday: 'short', year: 'numeric', month: 'short', hour: 'numeric', minute: 'numeric', hour12: true }); } catch { if(typeof Intl == 'object' && typeof Intl.NumberFormat == 'function'){ - timezonedDate = date.toLocaleString('en-US', { day: 'numeric', weekday: 'short', year: 'numeric', month: 'short', hour: 'numeric', minute: 'numeric', hour12: true, timeZone: 'Etc/UTC' }); + timezonedDate = date.toLocaleString('en-US', { day: 'numeric', weekday: 'short', year: 'numeric', month: 'short', hour: 'numeric', minute: 'numeric', hour12: true }); } else { timezonedDate = ''; } diff --git a/pos-module-chat/modules/chat/template-values.json b/pos-module-chat/modules/chat/template-values.json index e810a25..1827891 100644 --- a/pos-module-chat/modules/chat/template-values.json +++ b/pos-module-chat/modules/chat/template-values.json @@ -2,7 +2,7 @@ "name": "Pos Module Chat", "machine_name": "chat", "type": "module", - "version": "2.1.2", + "version": "2.1.3", "dependencies": { "core": "^2.1.9", "user": "^5.2.10", diff --git a/pos-module-chat/pos-module.json b/pos-module-chat/pos-module.json index d4c83b3..b9053c8 100644 --- a/pos-module-chat/pos-module.json +++ b/pos-module-chat/pos-module.json @@ -7,5 +7,5 @@ }, "machine_name": "chat", "name": "Pos Module Chat", - "version": "2.1.2" + "version": "2.1.3" } \ No newline at end of file