Hey there!
This has been bothering me for a while so I decided to try and figure out how to fix it. This is the same bug as these other posts:
It looks like this:
Safari doesn’t accept strings like “2021-01-24 11:43:00” as parameters to the date constructor. But if that space in the middle is a “T” instead then it’s fine. So I put together a gist showing a potential code change to fix the BBS post dates on Safari:
https://gist.github.com/hendotcat/a50d71b114a145f5dd95587ad2dad78b
Here’s the effect of the replace() call in Safari. You can see how addding the “T” in the middle fixes it so that it no longer fails to parse.
And here’s the same two lines of code in Chrome, showing that adding the replace() call doesn’t affect the currently working date parsing there.
Would be really really nice to get this working, cos it’s surprisingly disorienting having all the posts dated as “NaN years ago” every time you come to the BBS! Hope this helps get it fixed! 😇
omg thank you for shipping it! works great:
feels amazing to be able to browse the bbs properly on ios now and it’s absolutely made my day to contribute even something small like this!
[Please log in to post a comment]