Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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