date-fns-timezone
date-fns-timezone copied to clipboard
Parsing and formatting date strings using IANA time zones for date-fns.
The API states that `locale` [can be passed as an option](https://github.com/prantlf/date-fns-timezone/blob/HEAD/docs/API.md#formattotimezone), this is however missing from the `TimeZoneOptions` interface. It also appears `convertTimeZone` is missing as well.
Nice library! `date-fns` really needs this timezone support built into the library. Is there any support for only including the 2012-2022 `timezone-support` data? Currently it looks like imports are coming...
Hi Guys, I'm currently replacing `moment-js` with `date-fns`, but when it comes to timezone, I'm unable to get the same value. Do you guys know what am I doing wrong?...
Great job in making it possible to work with timezones using date-fns v1! How well does this work with date-fns v2 alpha currently? Will this library live on after v2...
 (My system timezone is Europe/Paris)
https://github.com/prantlf/date-fns-timezone/blob/eeaeeb6b39edec021f37db5790b841055a05aa48/package.json#L79 Just wanted to point this out, for anyone else. I was running into formatting issues, since I was referencing the 2.0+ docs for date-fns. They have breaking changes between...
Let say I have some date in a variable called dateObject (1 July 2019 05:00:00 UTC), then doing: formatToTimeZone(dateObject, 'DDHHmm[Z] MMM YYYY', { timeZone: 'UTC' }) should give: 010500Z Jul...
For example [Amsterdam time](https://en.wikipedia.org/wiki/UTC%2B00:20) before July 1937 is `GMT +0h 19m 32.13s`. This means you get a partial minute which does not seem valid. Example: ```js import { formatToTimeZone }...
Using `formatToTimeZone` to convert an absolute time value to a date/time localised to a timezone gives different results depending on system timezone. When converting an absolute number of milliseconds since...
How can I create a new Date() value set to a specific timezone -- and get the timezone offset programatically? Right now I'm hard coding the timezone but these change...