News for hackers. Stuff that matters.
Re:Anything longer ago than yesterday should just say the ac... by irrational on Saturday October 14, 2023 @02:33PM (#37882992)
I’d prefer it to use the month name.

Then it doesn’t matter if you write it

November 12 2012

2012 November 12

12 November 2012

2012 12 November

Etc.

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.
Re:Anything longer ago than yesterday should just say the ac... by _dain_ on Saturday October 14, 2023 @03:57PM (#37883737)
If you're not formatting a numerical date in the user's preferred date format then you're probably not localizing the month name to the user's language either.

How would 2012 ноябрь 12 feel to you?

Re:Anything longer ago than yesterday should just say the ac... by irrational on Saturday October 14, 2023 @07:10PM (#37885129)
Fine if I set Russian as my langague. I presume Youtube does localization.
Re:Anything longer ago than yesterday should just say the ac... by funcDropShadow on Sunday October 15, 2023 @04:44PM (#37893242)
So it could also take the preferred datetime format from the locale.