Skip to content

Parse HTTP dates independent of locale - #609

Merged
ohlincha merged 1 commit into
mainfrom
fix/http-date-locale
Oct 26, 2026
Merged

ohlincha merged 1 commit into
mainfrom
fix/http-date-locale

Conversation

@mattasplund

Copy link
Copy Markdown
Collaborator

Summary

  • Parse English HTTP date month and weekday names without relying on the process locale.
  • Keep support for HTTP dates with or without seconds and validate parsed fields.
  • Add datetime regression coverage for the reported GMT date format.

This prevents TDateTime from asserting on valid HTTP dates when LC_TIME uses a non-English locale.

Tests

  • cmake --build build-date --target datetime_test --parallel 4
  • ctest --test-dir build-date --output-on-failure -R ^datetime$ (passed)

@ohlincha
ohlincha merged commit 2a1512b into main Oct 26, 2026
10 of 11 checks passed
ohlincha pushed a commit that referenced this pull request Oct 26, 2026
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