diff --git a/lib/galaxy/managers/markdown_util.py b/lib/galaxy/managers/markdown_util.py index 375416b70812..e76501b7dc0f 100644 --- a/lib/galaxy/managers/markdown_util.py +++ b/lib/galaxy/managers/markdown_util.py @@ -348,7 +348,7 @@ def handle_generate_time(self, line, generate_time): def handle_invocation_time(self, line, invocation): self.ensure_rendering_data_for("invocations", invocation)["create_time"] = invocation.create_time.strftime( - "%Y-%m-/%d, %H:%M:%S" + "%Y-%m-%d, %H:%M:%S" ) def handle_dataset_type(self, line, hda): @@ -549,7 +549,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.strftime("%m/%d/%Y, %H:%M:%S")) + content = literal_via_fence(invocation.create_time.strftime("%Y-%m-%d, %H:%M:%S")) return (content, True) def handle_dataset_name(self, line, hda): diff --git a/test/unit/app/managers/test_markdown_export.py b/test/unit/app/managers/test_markdown_export.py index 3710ff6831b8..72f5b900a5d7 100644 --- a/test/unit/app/managers/test_markdown_export.py +++ b/test/unit/app/managers/test_markdown_export.py @@ -414,7 +414,7 @@ def test_get_invocation_time(self): assert "invocations" in extra_data assert "create_time" in extra_data["invocations"]["be8be0fd2ce547f6"] assert extra_data["invocations"]["be8be0fd2ce547f6"]["create_time"] == invocation.create_time.strftime( - "%m/%d/%Y, %H:%M:%S" + "%Y-%m-%d, %H:%M:%S" ) def _ready_export(self, example):