News for hackers. Stuff that matters.
Re:Anything longer ago than yesterday should just say the ac... by Moru on Saturday October 14, 2023 @02:48PM (#37883109)
It matters a lot if you try to sort on that column
Re:Anything longer ago than yesterday should just say the ac... by hanniabu on Saturday October 14, 2023 @03:10PM (#37883295)
We're talking about how it's displayed on the frontend, not how it's stored on the backend
Re:Anything longer ago than yesterday should just say the ac... by Brian_K_White on Saturday October 14, 2023 @04:20PM (#37883916)
One persons front end is another persons back end.
Re:Anything longer ago than yesterday should just say the ac... by salawat on Saturday October 14, 2023 @04:42PM (#37884090)
Especially if you're a proctologist.
Re:Anything longer ago than yesterday should just say the ac... by NewJazz on Saturday October 14, 2023 @05:16PM (#37884348)
We use YYYY-MM-DD HH:mm:as on the frontend because it sorts lexicographically, which is useful for interactive tables.
Re:Anything longer ago than yesterday should just say the ac... by hanniabu on Saturday October 14, 2023 @11:17PM (#37886557)
You can use data attributes for that
Re:Anything longer ago than yesterday should just say the ac... by graftak on Sunday October 15, 2023 @12:39AM (#37886927)
There’s no need to have the sort value and the display value to be the same to allow sorting.
Re:Anything longer ago than yesterday should just say the ac... by thephyber on Saturday October 14, 2023 @06:15PM (#37884745)
I think irrational’s point is that it’s trivial for any viewer, no matter the locality, to identify the date if there is no longer any ambiguity between date and month.