3 ms·
I'd argue the opposite: APIs should publish all datetimes as UTC timestamps and only the client should be involved in presenting datetimes in the way best suite
by syncsynchalt 2y ago
I'd argue the opposite: APIs should publish all datetimes as UTC timestamps and only the client should be involved in presenting datetimes in the way best suited to the user experience.
I'd also argue that presenting dates in ~0KB of javascript is better and less error-prone than several KB of javascript - it also allows users to see dates in non-Gregorian calendars when they prefer.
- kccqzy 2y agoI'm afraid you have missed the point. My point is that most of the time you don't need datetimes. You only need dates. Think about sites like blogs. The user only needs to know on what date a blogpost is published. Likewise for newspapers: we have hundreds of years of paper newspapers where people know on what date an article is published but not at what time. Think about banks. My bank tells me the date of a transaction, not its time. Likewise for brokerages.
- burntsushi 2y agoMy brokerage gives me the date, time and time zone! From my most recent transation: 01/31/2025 11:35:11 AM.,EST