From 034b83e78bbf4a0efebf2cb4726a9c25f3bc223d Mon Sep 17 00:00:00 2001 From: djcomlab Date: Tue, 27 Feb 2018 23:41:17 +0000 Subject: [PATCH] Fix date formatting in QC outputs --- isatools/create/models.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/isatools/create/models.py b/isatools/create/models.py index 70ab4480..bc099562 100644 --- a/isatools/create/models.py +++ b/isatools/create/models.py @@ -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( @@ -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( @@ -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'), @@ -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( @@ -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( @@ -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( @@ -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'),