date-input: zoned values show in the timeZone prop (UTC) instead of their own zone
Maintainers usually reply within 1 day
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]")],
})
- Read
api.getSegments({ index: 0 }). - 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from chakra-ui/zag
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
dismissable: LayerDismissEvent isn't exportedPossibly taken @abu-tahir-0 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Slider: marker data-state ignores origin "center" / "end"Possibly taken @itisrmk claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
Maintainers usually reply within 1 day
Similar issues
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
Maintainers usually reply within 1 day
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nightly-labs/openbot#21303 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ADORSYS-GIS/CoopData#282 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OHDSI/Data2Evidence#3816 ·
Maintainers usually reply within 3 days
-
`ovsx verify` fails for a version older than the 100 newest of an extensionPossibly taken @trivikr claimed this today. Opencli
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
eclipse-openvsx/openvsx#2482 · 2 comments ·
Maintainers usually reply within 1 day