From 14f564faa60d741e662df8a2f3d8ea66c8b412de Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 4 Mar 2013 10:43:56 +0800 Subject: [PATCH] fix date calc --- WindowLog.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.2