Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pos-module-chat/modules/chat/public/assets/js/pos-chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}
Expand Down
2 changes: 1 addition & 1 deletion pos-module-chat/modules/chat/template-values.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pos-module-chat/pos-module.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
},
"machine_name": "chat",
"name": "Pos Module Chat",
"version": "2.1.2"
"version": "2.1.3"
}
Loading