[gnome-clocks] AlarmsStorage: Simplify saving a bit
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] AlarmsStorage: Simplify saving a bit
- Date: Thu, 22 Nov 2012 11:25:25 +0000 (UTC)
commit d416cdc0674d6539fac08418718e470ff5db5b46
Author: Volker Sobek <reklov live com>
Date: Thu Nov 22 01:41:06 2012 +0100
AlarmsStorage: Simplify saving a bit
The use of AlarmItem.time.strftime() was a leftover from the times
when AlarmItem handled 24h and 12h formats internally. It was changed
to only use the 24h format in 5601225de4.
gnomeclocks/alarm.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index ac839aa..311483e 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -36,8 +36,8 @@ class AlarmsStorage():
for a in alarms:
d = {
"name": a.name,
- "hour": a.time.strftime("%H"),
- "minute": a.time.strftime("%M"),
+ "hour": a.hour,
+ "minute": a.minute,
"days": a.days
}
alarm_list.append(d)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]