summaryrefslogtreecommitdiff
path: root/www/js/clock.js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-25 19:16:16 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-25 19:16:56 (GMT)
commit64bde3d495236f6f72c618ebc5004656c0fc67cc (patch)
tree80a10a0ed86ae11a3b13ae611a936f16ce7462fb /www/js/clock.js
parent534d3288e9b58f8351ed915790452d9bfdef9860 (diff)
only show future show entries
Diffstat (limited to 'www/js/clock.js')
-rw-r--r--www/js/clock.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/clock.js b/www/js/clock.js
index 3fa5c24..722a979 100644
--- a/www/js/clock.js
+++ b/www/js/clock.js
@@ -29,6 +29,10 @@ function Clock() {
this.clock_rtt = 0;
this.state = 'NEW';
+ this.now = function() {
+ return new Date(this.getRDTimeMS());
+ }
+
this.getRDTimeMS = function() {
return (+new Date()) + (this.last_message.tz_offset * 1000) + this.clock_offset;
}