Created
January 22, 2019 22:52
-
-
Save samueldr/49747b8b52b654af21c26d133504dc7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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