Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#105 times over 24 hours not converted properly

MySQLdb-1.1
closed
Andy Dustman
MySQLdb (285)
5
2012-09-19
2004-09-24
Jonas Meurer
No

MySQLdb silently transforms times over 24 hours to
their mod 24 version
since it forgot to take the day-part into account.

see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=190655
for patch and more information

bye
jonas

Discussion

  • Andy Dustman
    Andy Dustman
    2004-09-24

    Logged In: YES
    user_id=71372

    Note that bug only applies to the case where Python datetime
    module is used; does not occur when mx.DateTime is used for
    time implementation.

    Should fixed be in 1.1.6 and 1.0.1 (not done yet)

     
  • Andy Dustman
    Andy Dustman
    2004-09-26

    Logged In: YES
    user_id=71372

    Actually, upon closer inspection, bug applies only to
    mx.DateTime usage.

    A related problem is that both mx.DateTime have a "time
    delta" type (mx.DateTime.DateTimeDelta and
    datetime.timedelta), and up to this point the time delta
    types have been handled identically to the time-of-day types.

    1.0 CVS should now be fixed for this problem; I am going to
    do a more extensive fix on 1.1.x.

     
  • Andy Dustman
    Andy Dustman
    2004-09-26

    Logged In: YES
    user_id=71372

    Fixed in 1.0.1c1 and 1.1.6