Skip to content

Improve date parsing to handle YYYYMMDD format#8

Merged
ralflang merged 1 commit into
FRAMEWORK_6_0from
TDannhauer-patch-1
Mar 20, 2026
Merged

Improve date parsing to handle YYYYMMDD format#8
ralflang merged 1 commit into
FRAMEWORK_6_0from
TDannhauer-patch-1

Conversation

@TDannhauer
Copy link
Copy Markdown
Contributor

Add handling for ambiguous date formats to avoid misinterpretation.

In Horde_Date::__construct(), adjust the deprecated “numeric string timestamp” cast so an 8-digit YYYYMMDD string (with valid month/day) is not cast to int (timestamp).

Add handling for ambiguous date formats to avoid misinterpretation.

In Horde_Date::__construct(), adjust the deprecated “numeric string timestamp” cast so an 8-digit YYYYMMDD string (with valid month/day) is not cast to int (timestamp).

fix: Solve ambiguity for yyyymmdd format
@ralflang ralflang force-pushed the TDannhauer-patch-1 branch from 47ffdda to f15c5de Compare March 20, 2026 08:21
@ralflang
Copy link
Copy Markdown
Member

I reworked this a bit.

@ralflang ralflang merged commit 5e9fbdb into FRAMEWORK_6_0 Mar 20, 2026
0 of 8 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