Skip to content

Add tests for to_date_in_timezone/2 and to_date/3 when VALUE=DATE#38

Merged
aseigo merged 1 commit into
expothecary:masterfrom
matthewlehner:deserialize-date-tests
Apr 12, 2026
Merged

Add tests for to_date_in_timezone/2 and to_date/3 when VALUE=DATE#38
aseigo merged 1 commit into
expothecary:masterfrom
matthewlehner:deserialize-date-tests

Conversation

@matthewlehner

@matthewlehner matthewlehner commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

I was getting started on the Timex.parse logic and… it was a bit more complicated than I thought.

I figure adding a bit more test coverage here to show what's weird/broken at the moment.

These edge cases are pretty wild!

Here's a link to the RFC, for reference: https://www.rfc-editor.org/rfc/rfc5545#section-3.3.5

@matthewlehner matthewlehner force-pushed the deserialize-date-tests branch from 3dd4d2f to 659315b Compare April 11, 2026 21:02
Cover the normal case, trailing Z, unparseable input, and both
DST edge cases: ambiguous times (fall-back) and gap times
(spring-forward).
@matthewlehner matthewlehner force-pushed the deserialize-date-tests branch from 659315b to e86d7c0 Compare April 11, 2026 21:02

@aseigo aseigo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love to see more tests.

@aseigo aseigo merged commit 64346aa into expothecary:master Apr 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants