loop { learn }

loop { learn }

Handling date strings and timezones in JavaScript

Feb 16, 202114 min read

Here is a simple scenario: you're writing client-side JavaScript. You query an API with a city name, and it returns with a bunch of useful information about the city, including the timezone, in this format: { ... city: "New York", timezone: -18000, ....

Macrotery and Macrotery Redux
Rent-a-Pokémon and Rent-a-Pokémon Redux