samples/consul-ui/js/utils.js in consul-templaterb-1.33.3 vs samples/consul-ui/js/utils.js in consul-templaterb-1.34.1
- old
+ new
@@ -32,11 +32,11 @@
function padDateUnit(x) {
return x > 9 ? x : '0' + x;
}
function formatDate(date) {
- return padDateUnit(date.getMonth() + 1) + "/" + padDateUnit(date.getDate()) + " " + padDateUnit(date.getHours()) + ':' + padDateUnit(date.getMinutes()) + ':' + padDateUnit(date.getSeconds());
+ return padDateUnit(date.getUTCMonth() + 1) + "/" + padDateUnit(date.getUTCDate()) + " " + padDateUnit(date.getUTCHours()) + ':' + padDateUnit(date.getUTCMinutes()) + ':' + padDateUnit(date.getUTCSeconds()) + " UTC";
}
function indexOfTimelineEvent(e) {
if (e == null) {
return 'k/0000000000/0000/0000';
@@ -491,6 +491,6 @@
} else {
newUrl.searchParams.set(arg, value);
}
window.history.pushState({}, "", newUrl);
-}
\ No newline at end of file
+}