Fix time formatting for OPs.
This commit is contained in:
parent
059be4fab5
commit
59f5adaf7d
@ -2835,7 +2835,7 @@
|
|||||||
if (post["class"] === 'inline') {
|
if (post["class"] === 'inline') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
node = $('.dateTime', post.el);
|
node = $('.postInfo > .dateTime', post.el);
|
||||||
Time.date = Time.parse(node.textContent);
|
Time.date = Time.parse(node.textContent);
|
||||||
node.textContent = Time.funk(Time);
|
node.textContent = Time.funk(Time);
|
||||||
return node.dataset.time = Time.date.toISOString();
|
return node.dataset.time = Time.date.toISOString();
|
||||||
|
|||||||
@ -2247,8 +2247,7 @@ Time =
|
|||||||
Main.callbacks.push @node
|
Main.callbacks.push @node
|
||||||
node: (post) ->
|
node: (post) ->
|
||||||
return if post.class is 'inline'
|
return if post.class is 'inline'
|
||||||
# .posttime exists on every board except /f/
|
node = $ '.postInfo > .dateTime', post.el
|
||||||
node = $ '.dateTime', post.el
|
|
||||||
Time.date = Time.parse node.textContent
|
Time.date = Time.parse node.textContent
|
||||||
node.textContent = Time.funk(Time)
|
node.textContent = Time.funk(Time)
|
||||||
# Set the datetime attribute, ISO'd.
|
# Set the datetime attribute, ISO'd.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user