localize: use <time>
This commit is contained in:
parent
fa7ce06d53
commit
9d128c5509
@ -1670,7 +1670,7 @@
|
||||
localize = {
|
||||
init: function() {
|
||||
return g.callbacks.push(function(root) {
|
||||
var date, day, dotw, hour, meridiem, min_sec, month, s, year, _, _ref;
|
||||
var date, day, dotw, hour, meridiem, min_sec, month, s, time, year, _, _ref;
|
||||
if (root.className === 'inline') {
|
||||
return;
|
||||
}
|
||||
@ -1691,7 +1691,10 @@
|
||||
}
|
||||
hour = $.zeroPad(hour);
|
||||
dotw = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][date.getDay()];
|
||||
return s.textContent = " " + month + "/" + day + "/" + year + "(" + dotw + ")" + hour + ":" + min_sec + meridiem + " ";
|
||||
time = $.el('time', {
|
||||
textContent: " " + month + "/" + day + "/" + year + "(" + dotw + ")" + hour + ":" + min_sec + meridiem + " "
|
||||
});
|
||||
return $.replace(s, time);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@ -1367,7 +1367,9 @@ localize =
|
||||
'Fri'
|
||||
'Sat'
|
||||
][date.getDay()]
|
||||
s.textContent = " #{month}/#{day}/#{year}(#{dotw})#{hour}:#{min_sec}#{meridiem} "
|
||||
time = $.el 'time',
|
||||
textContent: " #{month}/#{day}/#{year}(#{dotw})#{hour}:#{min_sec}#{meridiem} "
|
||||
$.replace s, time
|
||||
|
||||
titlePost =
|
||||
init: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user