Sam Hindess

Results 8 comments of Sam Hindess

I've been facing the same issue today. With the formatjs polyfill that's recommended, I've got it partially working: `dayjs.tz("2013-11-18 11:55", "America/Toronto")` returns correctly with `"2013-11-18T16:55:00.000Z"` However, it's not fully working:...

@ellipticaldoor I created an empty `polyfill.ts` file, as the polyfill isn't required on iOS or Web, and created a `polyfill.android.ts` file which contains the following: https://gist.github.com/sohcah/c223886c3e40a7b9c0283cd0213e2a54 I've got a few...

My converting issue seems similar to #1356... so possibly related?

Looks like `Date.toLocaleString()` works differently with the Polyfill. Running `new Date().toLocaleString("en-US", { timeZone: "America/Toronto" })` in a browser returns `"2/9/2021, 9:03:52 AM"`, whilst with the polyfill it returns `2/9/2021`.

```ts // @ts-ignore Date.prototype._toLocaleString = Date.prototype.toLocaleString; // @ts-ignore Date.prototype.toLocaleString = function (a, b) { if (b && Object.keys(b).length === 1 && "timeZone" in b && a === "en-US") { return...

This would be extraordinarily useful for me.

Hey, are there any plans to finish development of this feature, and is there anything that could be done to contribute?

Encountering the same issue with my Radeon RX570. :(