Fix time formatting for OPs.
This commit is contained in:
parent
059be4fab5
commit
59f5adaf7d
@ -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();
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user