Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Conversation

@Acylation
Copy link
Collaborator

@Acylation Acylation commented Feb 4, 2025

Closes #994, #974

Possibly to close #430 if plugin-specified locale settings are required
May fix #969 together if the date field detection is enhanced

Currently in alpha stage, the PRs works but has bugs

mdbraber and others added 7 commits January 26, 2025 00:09
Add input event handler call to DateInput

Shift to local DateInput component

Reserve submitting null when no cache

Simplified date / datetime input

Clean up
Stage 1: Handle most views and sorts, except for calendar
Seems buggy, needs unit test to calendar helpers
Write date string back according to timezone

Only reserve non-local timezone marks, non-DST save. Possible solution should be providing settings to specify user zone

Add hint

Resume input events on date inputs

Extend date string support for timezoneId

Fix date parsing

Remove dayjs

Cancel default date filling in field creation

Refactor date string parsing

Clean up redundant comments and tests

Fix bugs on filters and card display

Fix calendar date range

Refactor calendar with Temporal

Seems buggy, needs unit test to calendar helpers

Refactor using Temporal

Stage 1: Handle most views and sorts, except for calendar
@Acylation
Copy link
Collaborator Author

Acylation commented Feb 4, 2025

@marcusolsson Hi! Since this is a significant change, could you take some time to review the design?

In short, I’m converting all date/datetime strings into ZonedDateTime objects internally, defaulting to the user’s local time. When displayed, the timezone info is truncated, behaving like PlainDate / PlainDateTime.

For edits in the Projects UI, only values with a different timezone offset from the user’s local zone will retain the offset suffix.

For example, if the user’s timezone is -05:00, adding one minute results in:

  • 2025-02-03T12:312025-02-03T12:32
  • 2025-02-03T12:31-05:002025-02-03T12:32
  • 2025-02-03T12:31-08:002025-02-03T12:32-08:00

Update: Continue at #1004, I messed up resolving conflicts

@Acylation Acylation closed this Feb 4, 2025
@Acylation Acylation deleted the introduce-temporal branch February 4, 2025 04:08
@Acylation Acylation removed the request for review from marcusolsson February 4, 2025 04:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recognize more date formats Date type column show as an text format Date format settings for project/view

2 participants