Skip to content

Commit

Permalink
converting date on PDF generated report to a more readable string tim…
Browse files Browse the repository at this point in the history
…e instead of iso
  • Loading branch information
assuntad23 committed Sep 29, 2023
1 parent 55bdf14 commit 62c084f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/managers/markdown_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def handle_generate_time(self, line, generate_time):
pass

def handle_invocation_time(self, line, invocation):
self.ensure_rendering_data_for("invocations", invocation)["create_time"] = invocation.create_time.isoformat()
self.ensure_rendering_data_for("invocations", invocation)["create_time"] = invocation.create_time.strftime("%m/%d/%Y, %H:%M:%S")

def handle_dataset_type(self, line, hda):
self.extend_history_dataset_rendering_data(hda, "ext", hda.ext, "*Unknown dataset type*")
Expand Down Expand Up @@ -547,7 +547,7 @@ def handle_generate_time(self, line, generate_time):
return (content, True)

def handle_invocation_time(self, line, invocation):
content = literal_via_fence(invocation.create_time.isoformat())
content = literal_via_fence(invocation.create_time.strftime("%m/%d/%Y, %H:%M:%S"))
return (content, True)

def handle_dataset_name(self, line, hda):
Expand Down

0 comments on commit 62c084f

Please sign in to comment.