enigma2: fixed not working date/time translation when the first character after ...
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-3.999git20131118 / 0008-format-translation-was-not-working-when-the-first-ch.patch
1 From 81aee2bd3effdffe6bd531e2c5f998a7ec588974 Mon Sep 17 00:00:00 2001
2 From: ghost <andreas.monzner@dream-property.net>
3 Date: Thu, 2 Jan 2014 17:08:55 +0100
4 Subject: [PATCH 8/8] format translation was not working when the first
5  character after the "Format:" was a percent symbol
6
7 ---
8  usr/lib/enigma2/python/Components/Converter/ClockToText.py |    2 +-
9  1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/usr/lib/enigma2/python/Components/Converter/ClockToText.py b/usr/lib/enigma2/python/Components/Converter/ClockToText.py
12 index ca6a2ee..8aeefa8 100644
13 --- a/usr/lib/enigma2/python/Components/Converter/ClockToText.py
14 +++ b/usr/lib/enigma2/python/Components/Converter/ClockToText.py
15 @@ -65,7 +65,7 @@ class ClockToText(Converter, object):
16  
17                 elif self.type == self.FORMAT:
18                         spos = self.fmt_string.find('%')
19 -                       if spos > 0:
20 +                       if spos > -1:
21                                 s1 = self.fmt_string[:spos]
22                                 s2 = strftime(self.fmt_string[spos:], t)
23                                 shortDay = self.fmt_string.find('%a')
24 -- 
25 1.7.10.4
26