DateTime incorrect parsing of international date format

Bug #404449 reported by Chui Tey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DateTime
Invalid
Medium
Unassigned

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>

Tags: datetime
Revision history for this message
Chui Tey (teyc) wrote :
Tres Seaver (tseaver)
affects: zope2 → datetime
Changed in datetime:
assignee: nobody → Tres Seaver (tseaver)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
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
Revision history for this message
Colin Watson (cjwatson) wrote :

The datetime project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/datetime.

Changed in datetime:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.