Skip to content

Deprecated Timezone Interaction #75

Description

@hokkyss

This snippet below throws RangeError: Invalid time value

import { TZDate } from '@date-fns/tz'
import { format } from 'date-fns/format'

const utc15 = '2026-03-01T15:21:10.730Z'

const utc15InJapan = TZDate.tz('Asia/Japan', utc15);
const formattedUtc15InJapan = format(utc15InJapan, 'dd MMM yyyy');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions