mirror of
https://github.com/dg9vh/MMDVMHost-Websocketboard.git
synced 2026-03-12 08:04:45 +01:00
Fixed problem with timestamps in Safari-Browsers
This commit is contained in:
parent
bffbf8ee6e
commit
490977c3db
|
|
@ -45,7 +45,7 @@ function getTimezone() {
|
|||
function getLocaltimeFromTimestamp(timestamp) {
|
||||
logIt(timestamp);
|
||||
if (useClientTimezone) {
|
||||
var localtime = new Date(timestamp + "Z");
|
||||
var localtime = new Date(timestamp.replace(/-/g, "/") + " GMT");
|
||||
return localtime.toLocaleString();
|
||||
} else {
|
||||
return timestamp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue