From 0b6fa2aa3e46ac04fa2de4deab64aa5626a11167 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Mon, 11 Jan 2021 21:18:30 -0600
Subject: [PATCH] Fix date ouput for finalize execution run table

---
 workflow/rna-seq.nf | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf
index 12cb63d..7d9f92e 100644
--- a/workflow/rna-seq.nf
+++ b/workflow/rna-seq.nf
@@ -2155,7 +2155,7 @@ process finalizeExecutionRun {
   rid=\$(python3 ${script_uploadExecutionRun_finalizeExecutionRun} -r ${repRID} -w \${workflow} -g \${genome} -i ${inputBagRID} -s Success -d 'Run Successful' -o ${source} -c \${cookie} -u ${executionRunRID})
   echo LOG: execution run RID marked as successful - \${rid} >> ${repRID}.finalizeExecutionRun.log
 
-  dt=`date --utc +%FT%TZ`
+  dt=`date +%FT%T.%3N%:z`
   curl -H 'Content-Type: application/json' -X PUT -d \
     '{ \
       "ID": "${workflow.sessionId}" \
@@ -2245,7 +2245,7 @@ process failPreExecutionRun {
     echo LOG: execution run RID updated - \${executionRun_rid} >> ${repRID}.failPreExecutionRun.log
   fi
 
-  dt=`date --utc +%FT%TZ`
+  dt=`date +%FT%T.%3N%:z`
   curl -H 'Content-Type: application/json' -X PUT -d \
     '{ \
       "ID": "${workflow.sessionId}" \
@@ -2336,7 +2336,7 @@ process failExecutionRun {
     echo LOG: execution run RID marked as error - \${rid} >> ${repRID}.failExecutionRun.log
   fi
   
-  dt=`date --utc +%FT%TZ`
+  dt=`date +%FT%T.%3N%:z`
   curl -H 'Content-Type: application/json' -X PUT -d \
     '{ \
       "ID": "${workflow.sessionId}" \
-- 
GitLab