#36 Date(time) converters cannot handle dates before 1900

closed-accepted
None
5
2006-01-11
2005-12-20
No

The Date(time) converters rely on Python's
datetime.strftime method. This method cannot handle
dates with years < 1900.

The attached patch uses 'normal' string interpolation
to overcome this limitiation. A test for this fix is
included in the patch.

I hope this patch proofs to be useful and can be
applied to the SQLObject codebase.

Thx for the great library!

Discussion

  • Oleg Broytman

    Oleg Broytman - 2006-01-11
    • status: open --> closed
     
  • Oleg Broytman

    Oleg Broytman - 2006-01-11

    Logged In: YES
    user_id=4799

    Applied at the revision 1482 to the 0.7-branch and 1483 to
    the trunk. Thank you!

     
  • Oleg Broytman

    Oleg Broytman - 2006-01-11
    • assigned_to: nobody --> phd
    • status: closed --> closed-accepted
     
  • Jan-Wijbrand Kolman

    Logged In: YES
    user_id=80745

    I'm confused; I did a check out of both trunk and 0.7-bugfix
    branch (from http://svn.colorstudy.com/SQLObject/\) but I
    didn't see any changes related to the date(time) converters.

    Do I look at the wrong repository?

     
  • Oleg Broytman

    Oleg Broytman - 2006-01-11

    Logged In: YES
    user_id=4799

    Oops! I have forgotten to switch to the new URL of the
    repository and committed to the old one. Now I've
    recommitted the patch. Rev. 1492. Sorry for the confusion!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks