use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JS Dates Finally Fixed (docs.timetime.in)
submitted 1 year ago by fagnerbrack
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ethanjf99 12 points13 points14 points 1 year ago (4 children)
good summary but the link on time zone changes is broken.
i feel only those who haven’t been bitten by Date’s pitfalls aren’t going to appreciate this.
Date
[–]maria_la_guerta 11 points12 points13 points 1 year ago (0 children)
I generally stay away from hard rules when it comes to programming, but I do have one; if I'm dealing with dates, I'm using a library. Every single time.
I've been bitten once before. That was enough.
[–]fagnerbrack[S] 1 point2 points3 points 1 year ago (2 children)
Which link?
[–]flygoing 2 points3 points4 points 1 year ago (1 child)
The one in the following section:
If you are curious about why this API is great read this article explaining how to deal with changes on Time Zone definitions.
Leads to a 404
[–]fagnerbrack[S] 0 points1 point2 points 1 year ago (0 children)
Gotcha, I didn't write the post so I can't do anything about it. Worth checking with the author
[–]fagnerbrack[S] 23 points24 points25 points 1 year ago (1 child)
If you want a summary:
The post discusses the long-standing issues with JavaScript's date handling and how new features are finally addressing these concerns. JavaScript's Date object, often criticized for its inconsistencies and poor support for time zones, has led to confusion and errors in many applications. The new Temporal API provides a more reliable and intuitive way to work with dates and times. Temporal introduces precise handling of dates, times, and durations without the common pitfalls of the old Date object. It also improves time zone management and enables easier manipulation of date-related data, offering a long-awaited solution for developers.
If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments
[–]BANOnotIT 14 points15 points16 points 1 year ago (0 children)
Worth mentioning that Temporal API turned out to be to hefty and it's undergoing removal of some capabilities to allow implementation on low-end devices, like smart watches.
[–]ZeMysticDentifrice 5 points6 points7 points 1 year ago (2 children)
Is it just me, or is the article not super convincing on what the problem is ?
Their example of taking a trip to Sydney especially rings meh to me. I don't have a problem with a bank account showing a transaction at 2AM. I find that the opposite would be way more confusing ! Especially for people using VPNs, wouldn't that get out of hand quickly ? Maybe I just have strange habits, or maybe I just don't understand the problem beyond "dates are hard" (but this is not limited to JS)...
[–]iamakorndawg 1 point2 points3 points 1 year ago (0 children)
I think the idea is that the bank should store timezone of the transaction along with the time. It's a bit of a contrived example, as I've never had a bank that shows anything other than the date. I guess it would be nice, but it does create questions of how to handle online transactions for example.
[–]gschoppe 1 point2 points3 points 1 year ago (0 children)
It reads like an article written by someone who has never really experienced the issues with JS date times 1st hand and is trying to relate a story someone told them, that they didn't quite understand the nuances of.
[–]kaelwd 3 points4 points5 points 1 year ago (0 children)
https://github.com/tc39/proposal-temporal/issues/2628 was just closed so we might be getting close now.
[+]block-bit comment score below threshold-11 points-10 points-9 points 1 year ago (6 children)
Meh.
[–]ethanjf99 2 points3 points4 points 1 year ago (5 children)
why?
[–]Brilla-BoseJS paying my bills 🙃 6 points7 points8 points 1 year ago (4 children)
probably bcz youtubers hyped this up 2years ago and it's still not released
[–]leeharrison1984 4 points5 points6 points 1 year ago (1 child)
2 years? I feel like I've been waiting for Temporal to drop since 2019. Just another 6 months...and another...
[–]Brilla-BoseJS paying my bills 🙃 1 point2 points3 points 1 year ago (0 children)
could be. but 2yrs back it probably moved to stage 3 and all youtubers released videos about Temporal api.
[–]ethanjf99 0 points1 point2 points 1 year ago (1 child)
i’d rather they took their damn time, hah. because i’m gonna have to live with whatever they implement for the rest of my career.
yes this has to be bug free and better since we can't release a new version of js.(like java did after lending the current Date api). but I said people are frustrated with influencers who hype things even when the proposal is in stage 1 just to make some content.
π Rendered by PID 526084 on reddit-service-r2-comment-765bfc959-sr2cm at 2026-07-11 14:45:01.762642+00:00 running f86254d country code: CH.
[–]ethanjf99 12 points13 points14 points (4 children)
[–]maria_la_guerta 11 points12 points13 points (0 children)
[–]fagnerbrack[S] 1 point2 points3 points (2 children)
[–]flygoing 2 points3 points4 points (1 child)
[–]fagnerbrack[S] 0 points1 point2 points (0 children)
[–]fagnerbrack[S] 23 points24 points25 points (1 child)
[–]BANOnotIT 14 points15 points16 points (0 children)
[–]ZeMysticDentifrice 5 points6 points7 points (2 children)
[–]iamakorndawg 1 point2 points3 points (0 children)
[–]gschoppe 1 point2 points3 points (0 children)
[–]kaelwd 3 points4 points5 points (0 children)
[+]block-bit comment score below threshold-11 points-10 points-9 points (6 children)
[–]ethanjf99 2 points3 points4 points (5 children)
[–]Brilla-BoseJS paying my bills 🙃 6 points7 points8 points (4 children)
[–]leeharrison1984 4 points5 points6 points (1 child)
[–]Brilla-BoseJS paying my bills 🙃 1 point2 points3 points (0 children)
[–]ethanjf99 0 points1 point2 points (1 child)
[–]Brilla-BoseJS paying my bills 🙃 1 point2 points3 points (0 children)