Discussion
Loading...

#Tag

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Aral Balkan
Aral Balkan
@aral@mastodon.ar.al  ·  activity timestamp 2 weeks ago

So guess who wrote a convoluted date comparison conditional instead of using `Temporal.ZonedDateTime.compare()` like an intelligent human being and ended up hitting an edge case where future scheduled calls started getting cleaned off the database instead of past ones?

I’ll give you a hint: has two thumbs and his name is Aral 🤦‍♂️

Anyway, just restored things from yesterday’s backup and sent a direct message to everyone scheduled for a Gaza Verified video verification call apologising for the confusion and explaining what happened.

Moral of the story: stick to the Temporal API and use its methods if you’re implementing anything even remotely non-trivial involving dates, especially if there are timezones involved. (You can use a Temporal API polyfill in Node.js – I’ve been using temporal-polyfill.)

Now I’m going to expire for the evening.

💕

#GazaVerified #TemporalAPI #calendars #dates #timezones #JavaScript #NodeJS

  • Copy link
  • Flag this post
  • Block
pvergain (framapiaf) boosted
Inautilo
Inautilo
@inautilo@mastodon.social  ·  activity timestamp 7 months ago

#Development #Overviews
When can I use the Temporal API? · Why JavaScript’s Date API replacement took so long https://ilo.im/165c7r

_____
#TC39 #EcmaScript #JavaScript #TemporalAPI #DateAPI #API #Browser #WebDev #Frontend

  • Copy link
  • Flag this post
  • Block
Tom Smykowski
Tom Smykowski
@tomaszs@techhub.social  ·  activity timestamp 3 weeks ago

Temporal API finally shipped in Chrome!

Edge: No support
Safari: Flag only
Chrome Mobile: No support
Firefox Desktop & Mobile: Full support

Full analysis with practical examples

https://tomaszs2.medium.com/-temporal-api-finally-released-in-chrome-but-still-not-usable-d2bbc225508d

#JavaScript #WebDev #Chrome #Firefox #TemporalAPI

Medium

🗓️ Temporal API Finally Released In Chrome, But Still Not Usable

Chrome ships the JavaScript date API we’ve waited 25 years for, but browser support gaps make it impossible to use in production. Here’s…
  • Copy link
  • Flag this post
  • Block
Inautilo
Inautilo
@inautilo@mastodon.social  ·  activity timestamp 7 months ago

#Development #Overviews
When can I use the Temporal API? · Why JavaScript’s Date API replacement took so long https://ilo.im/165c7r

_____
#TC39 #EcmaScript #JavaScript #TemporalAPI #DateAPI #API #Browser #WebDev #Frontend

  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.7 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct