Fix time formatting for OPs.

This commit is contained in:
Nicolas Stepien 2012-04-29 15:09:18 +02:00
parent 059be4fab5
commit 59f5adaf7d
2 changed files with 2 additions and 3 deletions

View File

@ -2835,7 +2835,7 @@
if (post["class"] === 'inline') {
return;
}
node = $('.dateTime', post.el);
node = $('.postInfo > .dateTime', post.el);
Time.date = Time.parse(node.textContent);
node.textContent = Time.funk(Time);
return node.dataset.time = Time.date.toISOString();

View File

@ -2247,8 +2247,7 @@ Time =
Main.callbacks.push @node
node: (post) ->
return if post.class is 'inline'
# .posttime exists on every board except /f/
node = $ '.dateTime', post.el
node = $ '.postInfo > .dateTime', post.el
Time.date = Time.parse node.textContent
node.textContent = Time.funk(Time)
# Set the datetime attribute, ISO'd.