date-input: zoned values show in the timeZone prop (UTC) instead of their own zone

Open Beginner friendly
#3,710 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Yahiro025 is already working on this.

Since Dec 1, 2026.

  • #3712 by @Yahiro025 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Start with the date-input machine code that builds the DateFormatter using props.timeZone || "UTC"; the issue does not name a file or test. Trace how the formatter receives a zoned value and how the timeZone prop is applied, then check the segment output for the supplied New York ZonedDateTime. Done means the segments show 9:00 AM EDT by default while timeZone still applies to values without a zone.

Written by the indexing model from the issue text.

Description

🐛 Bug report

When date-input gets a ZonedDateTime value, it shows the time in the timeZone prop instead of the value's own zone. The prop defaults to "UTC", so a value in New York shows in UTC unless you also pass timeZone.

The machine builds its DateFormatter with props.timeZone || "UTC", and hasTimeZone only decides whether the zone-name segment is shown.

💥 Steps to reproduce

import { parseZonedDateTime } from "@internationalized/date"

const service = useMachine(dateInput.machine, {
  id: "d",
  granularity: "minute",
  defaultValue: [parseZonedDateTime("2026-03-10T09:00[America/New_York]")],
})
  1. Read api.getSegments({ index: 0 }).
  2. The segments read 3/10/2026, 1:00 PM UTC.

💻 Link to reproduction

The snippet above, against @zag-js/[email protected].

🧐 Expected behavior

The segments show 9:00 AM EDT, in the value's own zone, the way React Aria's DateField does. timeZone would then only matter for values without a zone.

🌍 System information

Software Version(s)
Zag Version 2.0.0-next.4
Browser any
Operating System any
Dominant language
TypeScript
Stars
5.3k
Forks
320
Avg merge
1d 22h
Merged PRs (30d)
60

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from chakra-ui/zag

All issues in chakra-ui/zag

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.