Marnus Weststrate

Results 63 comments of Marnus Weststrate

Add `patch-package` to your project with `yarn add patch-package` and the `"postinstall": "patch-package"` script (see its installation instructions). Then create a patch file `patches/metro+0.59.0.patch` with these contents: ``` diff --git...

@ghasemikasra39 RN 0.64 uses Metro 0.64 and the fix is in Metro 0.65, so you still need to patch Metro to **unmask the actual issue** you are having. See my...

Thank you both for the discussion so far. I believe it makes sense to have functions for shifting Date instances as well as functions with string input/outputs, i.e. parse and...

Thanks for your thoughts @jgonera. The point about renaming `parseJSON` is well taken. I don't think I'll put the shifting functions in a separate `date-fns-tz/compat`, but it does make sense...

@nfantone the functionality you are after is possible by using the `parse` function from `date-fns`: ```js import {parse} from 'date-fns' import {format, zonedTimeToUtc} from 'date-fns-tz' const dateForLA = parse('11-20-2020', 'MM-dd-yyyy',...

@nfantone O I see. When I looked at it I thought it was this past October. Thank you for your input, though, it has made me think and contributes toward...

@vladshcherbin use `format` with any Date and time zone on the options and just pass `OOOO` as the format string.

Remember that with this library you should never be looking at the UTC time stored within a date. The idea is to have the "local" values of the date be...

Not right now, but I'd be keen to add it. Most of the implementation is based on Luxon. If you're interested in creating a PR for this an approach like...

You need to use a polyfill to make it work on IE. Please confirm you are using one. See the docs.