ubyssey / ubyssey.ca

The code that powers www.ubyssey.ca
GNU General Public License v2.0
35 stars 40 forks source link

When publish date is set to the future, it is displayed as negative #1357

Closed SamuelmdLow closed 8 months ago

SamuelmdLow commented 8 months ago

When I changed the publish date template tag, I (maybe stupidly) didn't anticipate that articles with dates set to the future might be published. When this happens it shows the "time since" in negative seconds. It turns out frontdating articles is not an irregular practice and when editors saw this weird publish date they were confused because negative time is nonsense.

I think a reasonable solution for this would be to display "Now" when the publish date is in the future. I'm a little hesitant though. I don't want to contribute to frontdating because its technically dishonest. Manipulating the publish date should only occur when fixing a mistake (fixing an article that was published early by accident) or in edge cases (the article was live but unlisted). Theres no case where frontdating to the future is truthful. This is most relevant to News and Opinion articles but I believe its best practice for all articles to display accurate publish dates.

SamuelmdLow commented 8 months ago

Nevermind this I was completely wrong. No one is frontdating! The issue is because I stupidly didn't account for daylight savings time