From 1bec02239caf5c5dd4daae280b34ea50cf98dc6c Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 25 Aug 2016 11:19:09 +0200 Subject: [PATCH] coerce dates into strings --- www/common/cryptpad-common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index c7a3f146e..13780995c 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -206,7 +206,7 @@ define([ }; var makePad = function (href, title) { - var now = new Date(); + var now = ''+new Date(); return { href: href, atime: now, @@ -225,7 +225,7 @@ define([ return; } - var now = new Date(); + var now = ''+new Date(); var href = window.location.href; var parsed = parsePadUrl(window.location.href);