localize: use <time>

This commit is contained in:
James Campos 2011-05-27 04:46:34 -07:00
parent fa7ce06d53
commit 9d128c5509
2 changed files with 8 additions and 3 deletions

View File

@ -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);
}); });
} }
}; };

View File

@ -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: ->