summaryrefslogtreecommitdiff
path: root/js/demo/ChatDemo/Client.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-03-05 19:43:33 +0100
committerJose <jose@zeroc.com>2015-03-05 19:43:33 +0100
commitec14dc26152ae6f7f4d0ad4357be7ed787f1f428 (patch)
treeb2653b4a900382ca0ccd34c25ca938b0a4943abd /js/demo/ChatDemo/Client.js
parentUpdate NPM packages and some cleanup to HttpServer.js (diff)
downloadice-ec14dc26152ae6f7f4d0ad4357be7ed787f1f428.tar.bz2
ice-ec14dc26152ae6f7f4d0ad4357be7ed787f1f428.tar.xz
ice-ec14dc26152ae6f7f4d0ad4357be7ed787f1f428.zip
Fixed (ICE-6349) - Wrong time & timezone in JS Chat demo client
Diffstat (limited to 'js/demo/ChatDemo/Client.js')
-rw-r--r--js/demo/ChatDemo/Client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/demo/ChatDemo/Client.js b/js/demo/ChatDemo/Client.js
index 35379019d4f..2d3ffed7136 100644
--- a/js/demo/ChatDemo/Client.js
+++ b/js/demo/ChatDemo/Client.js
@@ -553,8 +553,8 @@ setState(State.Disconnected);
function formatDate(timestamp)
{
- var d = new Date();
- d.setTime(timestamp);
+ var d = new Date(0);
+ d.setUTCMilliseconds(timestamp);
return d.toLocaleTimeString().trim();
}