[issue #795] output server time

reduction to a single style
This commit is contained in:
Julea Pikareva 2012-12-28 20:34:10 +04:00
parent 87a6134da0
commit 079d6578d3
2 changed files with 2 additions and 1 deletions

View File

@ -1708,3 +1708,4 @@ form#new_pull_request {
table#myTable thead tr.search th form.button_to div input {
margin-top: 2px;
}

View File

@ -47,7 +47,7 @@
.replace("%d", formatNumber(minutes));
}
// TODO Very, very ugly method.
var now = document.getElementById('servertime').value*1000;
var now = $('#servertime').val() * 1000;
$("time.js-relative-date").each(function() {
var time = parseIso8601($(this).attr('datetime')).getTime();
$(this).text(strTimeBetween(time, now));