[gnome-clocks] Restore the right strptime format
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Restore the right strptime format
- Date: Sun, 26 Aug 2012 11:36:01 +0000 (UTC)
commit 4c74ac0d67b6c2f6401e8fba5d117a6f1355be6f
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Aug 26 13:33:11 2012 +0200
Restore the right strptime format
This was changed by mistake when fixing the "00" bug
gnomeclocks/alarm.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index 84261e1..19c6970 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -80,7 +80,7 @@ class AlarmItem:
self.vevent = None
if not h == None and not m == None:
if p:
- t = datetime.strptime("%02i:%02i %s" % (h, m, p), "%H:%M %p")
+ t = datetime.strptime("%02i:%02i %s" % (h, m, p), "%I:%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]