Bugs item #1496321, was opened at 2006-05-28 11:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1496321&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: SQLObject release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Markus Gritsch (markus_gritsch)
Assigned to: Nobody/Anonymous (nobody)
Summary: Regression in DateTimeValidator
Initial Comment:
The following change in the class DateTimeValidator
leads to different return values:
SQLObject-0.7.0:
secs = time.mktime(stime)
return datetime.datetime.fromtimestamp(secs)
SQLObject-0.7.1b1:
return datetime.datetime(*stime[:7])
I think only the first 6 items of stime should be used
instead of also including the microseconds. When I
change the line to
return datetime.datetime(*stime[:6])
everything works fine again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1496321&group_id=74338
|