Skip to content

Commit

Permalink
Fix date formatting in QC outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
djcomlab committed Feb 27, 2018
1 parent e3a4fb7 commit 034b83e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions isatools/create/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,8 +1197,8 @@ def create_study_from_plan(self, naming_convention=None):
process = Process(executes_protocol=study.get_prot(
'sample collection'), inputs=[qcsource],
outputs=[sample], performer=self.ops[0], date_=
datetime.datetime.isoformat(
datetime.datetime.now()))
datetime.date.isoformat(
datetime.date.today()))
process.parameter_values = [
ParameterValue(
category=sample_collection.get_param(
Expand All @@ -1217,8 +1217,8 @@ def create_study_from_plan(self, naming_convention=None):
process = Process(executes_protocol=study.get_prot(
'sample collection'), inputs=[qcsource],
outputs=[sample], performer=self.ops[0], date_=
datetime.datetime.isoformat(
datetime.datetime.now()))
datetime.date.isoformat(
datetime.date.today()))
process.parameter_values = [
ParameterValue(
category=sample_collection.get_param(
Expand All @@ -1245,8 +1245,8 @@ def create_study_from_plan(self, naming_convention=None):
process = Process(executes_protocol=study.get_prot(
'sample collection'), inputs=[qcsource],
outputs=[sample], performer=self.ops[0], date_=
datetime.datetime.isoformat(
datetime.datetime.now()))
datetime.date.isoformat(
datetime.date.today()))
process.parameter_values=[
ParameterValue(
category=sample_collection.get_param('run order'),
Expand Down Expand Up @@ -1307,8 +1307,8 @@ def create_study_from_plan(self, naming_convention=None):
executes_protocol=sample_collection,
inputs=[qcsource],
outputs=[sample], performer=self.ops[0],
date_=datetime.datetime.isoformat(
datetime.datetime.now()))
date_=datetime.date.isoformat(
datetime.date.today()))
process.parameter_values.append(
ParameterValue(
category=sample_collection.get_param(
Expand Down Expand Up @@ -1367,8 +1367,8 @@ def create_study_from_plan(self, naming_convention=None):
process = Process(executes_protocol=study.get_prot(
'sample collection'), inputs=[qcsource],
outputs=[sample], performer=self.ops[0], date_=
datetime.datetime.isoformat(
datetime.datetime.now()))
datetime.date.isoformat(
datetime.date.today()))
process.parameter_values = [
ParameterValue(
category=sample_collection.get_param(
Expand All @@ -1388,8 +1388,8 @@ def create_study_from_plan(self, naming_convention=None):
process = Process(executes_protocol=study.get_prot(
'sample collection'), inputs=[qcsource],
outputs=[sample], performer=self.ops[0], date_=
datetime.datetime.isoformat(
datetime.datetime.now()))
datetime.date.isoformat(
datetime.date.today()))
process.parameter_values = [
ParameterValue(
category=sample_collection.get_param(
Expand Down Expand Up @@ -1419,8 +1419,8 @@ def create_study_from_plan(self, naming_convention=None):
process = Process(executes_protocol=study.get_prot(
'sample collection'), inputs=[qcsource],
outputs=[sample], performer=self.ops[0], date_=
datetime.datetime.isoformat(
datetime.datetime.now()))
datetime.date.isoformat(
datetime.date.today()))
process.parameter_values=[
ParameterValue(
category=sample_collection.get_param('run order'),
Expand Down

0 comments on commit 034b83e

Please sign in to comment.