We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdea3cd commit 56a35efCopy full SHA for 56a35ef
docs/api/datetime.md
@@ -336,7 +336,7 @@ const userTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
336
const date = new Date('2014-10-25T10:46:20Z');
337
338
// Use date-fns-tz to convert from UTC to a zoned time
339
-const zonedTime = dateFnsTz.utcToZonedTime(date, userTimeZone);
+const zonedTime = utcToZonedTime(date, userTimeZone);
340
341
// Create a formatted string from the zoned time
342
format(zonedTime, 'yyyy-MM-dd HH:mm:ssXXX', { timeZone: userTimeZone });
0 commit comments