localize: use <time>
This commit is contained in:
parent
fa7ce06d53
commit
9d128c5509
@ -1670,7 +1670,7 @@
|
|||||||
localize = {
|
localize = {
|
||||||
init: function() {
|
init: function() {
|
||||||
return g.callbacks.push(function(root) {
|
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') {
|
if (root.className === 'inline') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1691,7 +1691,10 @@
|
|||||||
}
|
}
|
||||||
hour = $.zeroPad(hour);
|
hour = $.zeroPad(hour);
|
||||||
dotw = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][date.getDay()];
|
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'
|
'Fri'
|
||||||
'Sat'
|
'Sat'
|
||||||
][date.getDay()]
|
][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 =
|
titlePost =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user