Log In  

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! 😇

P#86744 2021-01-24 11:00 ( Edited 2021-01-24 11:09)

+1

P#86748 2021-01-24 14:51
:: zep
1

Thanks for the fix @hen! It's live now.

P#86751 2021-01-24 19:24
:: hen
1

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!

P#86753 2021-01-24 20:02

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-03-08 09:34 | 0.029s | 4194k | Q:17