From 115fea28272c88cf82df05fc8ecc1ea562971384 Mon Sep 17 00:00:00 2001 From: Scott Leibrand Date: Sun, 14 Aug 2016 21:08:23 -0700 Subject: [PATCH] #6 from @bewest: separate tokens with space in ini --- openapscontrib/timezones/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openapscontrib/timezones/__init__.py b/openapscontrib/timezones/__init__.py index e789eb6..d455482 100644 --- a/openapscontrib/timezones/__init__.py +++ b/openapscontrib/timezones/__init__.py @@ -31,8 +31,7 @@ def to_ini (self, args): if args.timezone._filename == '/etc/localtime': params['timezone'] = '' - if args.date: - params['date'] = ' '.join(args.date) + params.update(date=' '.join(params.get('date'))) return params def from_ini (self, fields): fields['date'] = fields['date'].split(' ') @@ -94,7 +93,7 @@ class clock (ConvertInput): """ Manage timezones of device clock. """ - FIELDNAME = None + FIELDNAME = [ ] def get_date_value (self, record): return parse(record) def convert (self, program):