Skip to content

Commit

Permalink
Merge pull request #97 from criteo/utc_dates
Browse files Browse the repository at this point in the history
Display UTC dates
  • Loading branch information
pierrecdn authored Feb 17, 2023
2 parents cf547e6 + 1d2de61 commit e3d287e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/consul/async/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Consul
module Async
VERSION = '1.33.3'.freeze
VERSION = '1.34.1'.freeze
end
end
4 changes: 2 additions & 2 deletions samples/consul-ui/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function padDateUnit(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) {
Expand Down Expand Up @@ -493,4 +493,4 @@ function updateURL(arg, value) {
}

window.history.pushState({}, "", newUrl);
}
}

0 comments on commit e3d287e

Please sign in to comment.