From ccdea9dfb7fec227778d31029a9be3d730c5f379 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 24 Nov 2005 00:26:01 +0000 Subject: [PATCH] fix calendar to return only the date asked --- src/common/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/logger.py b/src/common/logger.py index 28c4c1b2f..fabb77f3c 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -215,11 +215,11 @@ class Logger: jid_id = self.get_jid_id(jid) # gimme unixtime from year month day: - d = datetime.date(2005, 10, 3) + d = datetime.date(year, month, day) local_time = d.timetuple() # time tupple (compat with time.localtime()) start_of_day = int(time.mktime(local_time)) # we have time since epoch baby :) - now = time.time() + now = int(time.time()) con = sqlite.connect(LOG_DB_PATH) cur = con.cursor()