Replies: 1 comment
-
|
@calagbay // v2 (old)
import { zonedTimeToUtc } from 'date-fns-tz';
// v3 (new)
import { fromZonedTime } from 'date-fns-tz';same api, just the name changed. the other function was renamed too: full list of renames is in the v3 changelog. also fyi if you're on date-fns v4+, timezone support is now built into the core library via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is zonedTimeToUtc still working on v3? I get an error when using it.
Module '"date-fns-tz"' has no exported member 'zonedTimeToUtc'.ts(2305)
Beta Was this translation helpful? Give feedback.
All reactions