Commit df61c5b1 authored by Jérome Perrin's avatar Jérome Perrin

jobshop: read current date to convert due date in simulation clock time

parent 245b8a73
......@@ -39,8 +39,10 @@ class Simulation(ACO.Simulation):
""" Set the WIP in queue from spreadsheet data.
"""
data = copy(in_data)
# XXX have now a global option ?
now = datetime.now()
if data['general']['currentDate']:
now = strptime(data['general']['currentDate'], '%Y/%m/%d')
if 'wip_spreadsheet' in data:
wip_dict = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment