Skip to content
Snippets Groups Projects
Commit ccdea9df authored by nkour's avatar nkour
Browse files

fix calendar to return only the date asked

parent 97371d38
No related branches found
No related tags found
No related merge requests found
......@@ -215,11 +215,11 @@ def get_conversation_for_date(self, jid, year, month, day):
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment