DateTime incorrect parsing of international date format

Bug #404449 reported by Chui Tey on 2009-07-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The following date is parsed incorrectly. DateTime("12/03/09", datefmt="international") should be DateTime('2009/03/12'). Instead it is DateTime('2009/12/03').

Test cases and patch are provided.

Chui Tey <email address hidden>

Chui Tey (teyc) wrote :
Tres Seaver (tseaver) on 2010-05-08
affects: zope2 → datetime
Changed in datetime:
assignee: nobody → Tres Seaver (tseaver)
importance: Undecided → Medium
status: New → Confirmed
Tres Seaver (tseaver) wrote :

The patch applies with some touch up to the DateTime trunk, but the newly-added tests don't pass.

I don't really grok the heuristics being used through that bit of code, and so can't see where things are going wrong.

Changed in datetime:
assignee: Tres Seaver (tseaver) → nobody
status: Confirmed → Incomplete
status: Incomplete → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers