Skip to content

@Elusive138 /gist:16e1a5773eb73fef2139 secret
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
The script used by StackExchange to update its UTC clock
displayUtcTime: function () {
var a = this.$dialog,
b = function () {
var b = new Date;
b.setTime(b.getTime() + 1E3 * StackExchange.options.serverTimeOffsetSec);
var k = b.getUTCHours(),
b = b.getUTCMinutes();
10 > k && (k = "0" + k);
10 > b && (b = "0" + b);
a.find(".js-utc-time").text(k + ":" + b)
};
b();
setInterval(b, 6E4)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.