Discussion
Loading...

Discussion

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Charles Choi 최 민수
@kickingvegas@sfba.social  ·  activity timestamp 2 weeks ago

@xenodium @stebalien casual-timezone uses the local zoneinfo DB which provides a local-first solution, avoiding a network call. The downside is that the zoneinfo DB only has a subset of all cities. The plus side is that zoneinfo DB updates are picked up for free by casual-timezone.

  • Copy link
  • Flag this post
  • Block
Sebastian Lasse
@sl007@digitalcourage.social replied  ·  activity timestamp last week

@kickingvegas @xenodium @stebalien

just btw,
in #JS I am using https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl which also „provides a local-first solution, avoiding a network call“, just described in this thread 😊 https://digitalcourage.social/@sl007/115417827119273505

I mean, also just a subset whi I extended a bit by always being able to parse countries, all capitals and most populated (which are missing as Olson Indentifier).
Serverside it is very healthy that most countries only have 1 timezone. so any city within has it (just 2 gets)

Intl - JavaScript | MDNMDN

The Intl namespace object contains several constructors as well as functionality common to the internationalization constructors and other language sensitive functions. Collectively, they comprise the ECMAScript Internationalization API, which provides language sensitive string comparison, number formatting, date and time formatting, and more.
  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login