[hamster-applet] we don't care about seconds



commit 4c3d7fa648412cb7d8c248a220ed6089cf229801
Author: Toms Bauģis <toms baugis gmail com>
Date:   Wed May 20 14:37:51 2009 +0100

    we don't care about seconds
---
 hamster/stuff.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hamster/stuff.py b/hamster/stuff.py
index c12162a..1b26548 100644
--- a/hamster/stuff.py
+++ b/hamster/stuff.py
@@ -193,7 +193,8 @@ def figure_time(str_time):
     if (hours == None or minutes == None) or hours > 24 or minutes > 60:
         return None #no can do
 
-    return dt.datetime.now().replace(hour = hours, minute = minutes)
+    return dt.datetime.now().replace(hour = hours, minute = minutes,
+                                     second = 0, microsecond = 0)
 
 def parse_activity_input(text):
     """Currently pretty braindead function that tries to parse arbitrary input



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]