Fixing dates: Stop all dates from appearing as the current date/time. Fixes #820
This commit is contained in:
parent
db90f2ea11
commit
18ff21174e
|
@ -9,8 +9,9 @@ var PHPCI = {
|
|||
$(document).ready(function () {
|
||||
// Format datetimes
|
||||
$('time[datetime]').each(function() {
|
||||
var $this = $(this);
|
||||
$this.text(moment(this.dateTime).format($this.data('format') || 'lll'));
|
||||
var thisDate = $(this).attr('datetime');
|
||||
var formattedDate = moment(thisDate).format($(this).data('format') || 'lll');
|
||||
$(this).text(formattedDate);
|
||||
});
|
||||
|
||||
// Update latest builds every 5 seconds:
|
||||
|
|
Loading…
Reference in a new issue