Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created January 22, 2019 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/49747b8b52b654af21c26d133504dc7b to your computer and use it in GitHub Desktop.
Save samueldr/49747b8b52b654af21c26d133504dc7b to your computer and use it in GitHub Desktop.
diff --git a/src/root/static/js/common.js b/src/root/static/js/common.js
index fd72b70e..e9c5e576 100644
--- a/src/root/static/js/common.js
+++ b/src/root/static/js/common.js
@@ -111,7 +111,7 @@ $(document).ready(function() {
el.attr( "title", [
"Adjusted to local time (" + tz + ")",
"Other timezones:",
- " UTC: " + localTime.utc().format(DATE_FORMAT),
+ " UTC: " + localTime.clone().utc().format(DATE_FORMAT),
" As Hydra reported: " + hydraTime,
].join("\n"));
el.text(localTime.format(DATE_FORMAT));
@@ -120,7 +120,7 @@ $(document).ready(function() {
else if (el.hasClass("is-relative")) {
el.attr( "title", [
"Local (" + tz + "): " + localTime.format(DATE_FORMAT),
- "UTC: " + localTime.utc().format(DATE_FORMAT),
+ "UTC: " + localTime.clone().utc().format(DATE_FORMAT),
"As Hydra reported: " + hydraTime,
].join("\n"));
el.addClass("is-local");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment