Skip to content

Commit

Permalink
#6 from @bewest: separate tokens with space in ini
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Aug 15, 2016
1 parent 0d8d535 commit 115fea2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openapscontrib/timezones/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ')
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 115fea2

Please sign in to comment.