Skip to content

csv import: Fails to import "Long_Month unpadded_date, Year" into txn date #2668

Description

@sten0

hledger 1.52.1-g3834a163b-20260428, linux-x86_64

 "June 30, 2026" as a date using date format "\"%m %d, %Y\""
record: June 30, 2026,Action,Symbol,Long Name,,0.05,June 30, 2026,0000001,1.00,COIN,Long Description for Note Field
the date rule is:   %1
the date-format is: "%m %d, %Y"
you may need to change your date rule, change your date-format rule, or change your skip rule
for m/d/y or d/m/y dates, use date-format %-m/%-d/%Y or date-format %-d/%-m/%Y

The actual record is:

"June 30, 2026",Action,Symbol,Long Name,,0.05,"June 30, 2026",0000001,1.00,COIN,Long Description for Note Field

I've tried every combination I can think of for the date-format rule. This bug overlaps with the internationalisation issue we're also discussing.

I expected heldger to import this RFC 4180-compliant record while preserving the quoted string, pass it through iso8601-time or similar to do the equivalent of echo "June 30, 2026" | date -I. It wasn't clear to me in the documentation whether or not hledger can do this yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects4-manyAffects potentially a significant number of users.annoyance3-blockerNew user experience or installability bug. A potential user could fail to get started.csvThe csv file format, csv output format, or generally CSV-related.docsDocumentation-related.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions