Skip to content

fix: DOS time parser handles space before AM/PM#144

Merged
veeso merged 2 commits into
mainfrom
fix/dostime-ampm-space
Feb 12, 2026
Merged

fix: DOS time parser handles space before AM/PM#144
veeso merged 2 commits into
mainfrom
fix/dostime-ampm-space

Conversation

@veeso

@veeso veeso commented Feb 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add fallback format "%I:%M %p" (with space before AM/PM) to the DOS timestamp parser
  • Some FTP servers format times as 01:30 PM instead of 01:30PM

Severity

Medium — Directory listings from servers using the spaced format would fail to parse entirely.

Test plan

  • cargo test passes
  • Verify both 01:30PM and 01:30 PM formats parse correctly

🤖 Generated with Claude Code

@cocogitto-bot

cocogitto-bot Bot commented Feb 12, 2026

Copy link
Copy Markdown

✔️ 533a46d - Conventional commits check succeeded.

@veeso veeso added the gleam-gftp This issue affects also gleam-ftp library label Feb 12, 2026
veeso and others added 2 commits February 12, 2026 16:39
Some FTP servers format DOS timestamps with a space before AM/PM
(e.g. '01:30 PM' vs '01:30PM'). The parser now tries both formats.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@veeso veeso force-pushed the fix/dostime-ampm-space branch from 533a46d to ca2979a Compare February 12, 2026 15:42
@veeso veeso merged commit 0c6e826 into main Feb 12, 2026
31 checks passed
@veeso veeso deleted the fix/dostime-ampm-space branch February 12, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gleam-gftp This issue affects also gleam-ftp library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant