diff --git a/client/src/components/Markdown/Markdown.vue b/client/src/components/Markdown/Markdown.vue
index 35c38853cce4..bcd12a0ef755 100644
--- a/client/src/components/Markdown/Markdown.vue
+++ b/client/src/components/Markdown/Markdown.vue
@@ -30,7 +30,7 @@
- Generated with Galaxy {{ version }} on {{ time }} UTC
+ Generated with Galaxy {{ version }} on {{ time }}
Identifier: {{ markdownConfig.id }}
@@ -138,8 +138,13 @@ export default {
return this.enable_beta_markdown_export ? this.exportLink : null;
},
time() {
- const generateTime = this.markdownConfig.generate_time;
+ let generateTime = this.markdownConfig.generate_time;
if (generateTime) {
+ if (!(generateTime.endsWith("Z"))) {
+ // We don't have proper tzinfo, but this will always be UTC
+ // coming from Galaxy so append Z to assert UTC timezone
+ generateTime += "Z";
+ }
const date = new Date(generateTime);
return date.toLocaleString("default", {
day: "numeric",
@@ -147,6 +152,8 @@ export default {
year: "numeric",
minute: "numeric",
hour: "numeric",
+ timeZone: "UTC",
+ timeZoneName: "short",
});
}
return "unavailable";