Skip to content

feat(typecaster): fall back to PHP date parser for TIMESTAMPTZ/ISO-8601 strings - #12

Merged
Headgent merged 1 commit into
developfrom
feature/260829_typecaster-datetime-fallback
Aug 29, 2026
Merged

feat(typecaster): fall back to PHP date parser for TIMESTAMPTZ/ISO-8601 strings#12
Headgent merged 1 commit into
developfrom
feature/260829_typecaster-datetime-fallback

Conversation

@Headgent

Copy link
Copy Markdown
Contributor

Automatisierter Update-Release. Zielversion: v1.1.0

DateTime/DateTimeImmutable casting tried three fixed formats and silently returned null for Postgres TIMESTAMPTZ values with offset and/or microseconds. After the fixed formats, parse via new DateTime($value) in try/catch; unparseable strings still yield null. Tests for offset, microseconds, both, ISO-8601.

https://claude.ai/code/session_01SVFPPzKVK83zWDTUT9Hxbb

…01 strings

DateTime/DateTimeImmutable casting tried three fixed formats and silently
returned null for Postgres TIMESTAMPTZ values with offset and/or
microseconds. After the fixed formats, parse via new DateTime($value)
in try/catch; unparseable strings still yield null.

Claude-Session: https://claude.ai/code/session_01SVFPPzKVK83zWDTUT9Hxbb
@Headgent
Headgent merged commit 00f668e into develop Aug 29, 2026
3 checks passed
@Headgent
Headgent deleted the feature/260829_typecaster-datetime-fallback branch August 29, 2026 09:25
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.

1 participant