summaryrefslogtreecommitdiffstats
path: root/lps_gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'lps_gen.py')
-rw-r--r--lps_gen.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lps_gen.py b/lps_gen.py
index 2dc6742..6c2bf8e 100644
--- a/lps_gen.py
+++ b/lps_gen.py
@@ -174,10 +174,11 @@ class LPiCal(object):
hour = time.split(':')[0]
minute = time.split(':')[1]
- datetime_str = '%s %s %s %s:%s:%s' % (day, month, self.lp_year,
- hour.zfill(2),
- minute.zfill(2),
- '00')
+ datetime_str = '{} {} {} {}:{}:{}'.format(day, month,
+ self.lp_year,
+ hour.zfill(2),
+ minute.zfill(2),
+ '00')
dt_object = datetime.strptime(datetime_str, datetime_fmt)