From: Edward Date: Mon, 4 Mar 2013 02:43:56 +0000 (+0800) Subject: fix date calc X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=14f564faa60d741e662df8a2f3d8ea66c8b412de fix date calc --- diff --git a/WindowLog.js b/WindowLog.js index ec4eb690..62fe24ec 100644 --- a/WindowLog.js +++ b/WindowLog.js @@ -99,9 +99,10 @@ WindowLog = { var time = ctime.format("H:i:s ") File.append (path, "\n" +time + str + ' ' + cmd ); - + + // copy to gitlive/gitlog (each user should check out their own gitlog!? - if (this.lastcopy && this.lastcopy > ctime.add(Date.HOUR, -1)) { + if (this.lastcopy && this.lastcopy > ctime.add(xDate.Date.HOUR, -1)) { return; } this.lastcopy = ctime;