[gnome-clocks] Fixed Alarms not support 00 for minutes
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Fixed Alarms not support 00 for minutes
- Date: Sat, 25 Aug 2012 16:48:27 +0000 (UTC)
commit 67d4e7473e02f20f109a98131c36f578292b3f30
Author: Seif Lotfy <seif lotfy com>
Date: Sat Aug 25 18:47:45 2012 +0200
Fixed Alarms not support 00 for minutes
Fixed Alarms from not supporting 00 as minutes
gnomeclocks/alarm.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index 72c9093..c3514b9 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -81,9 +81,9 @@ class AlarmItem:
self.repeat = repeat
self.vevent = None
self.uid = None
- if h and m:
+ if not h == None and not m == None:
if p:
- t = datetime.strptime("%02i:%02i %s" % (h, m, p), "%I:%M %p")
+ t = datetime.strptime("%02i:%02i %s" % (h, m, p), "%H:%M %p")
else:
t = datetime.strptime("%02i:%02i" % (h, m), "%H:%M")
self.time = datetime.combine(datetime.today(), t.time())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]