chrisvxd/eventtools — pull request #2 by taivo (2012-06-21 07:49:48+00:00)
Title: Fixed a bug in OccurrenceModel.save() having to do with the end time

If the time component of an OccurrenceModel.end instance is time.min (0), it gets clamped to time.max (23.999999). That's okay as long as the date component gets compensated. Before this bug fix, occurrences that ends at midnight effectively get saved as having an extra day in duration (23.99999). I fixed this by subtracting 1 day from the date component.

OccurrenceModel.save() and utils/datetimeify both contribute to this bug. It looks like datetimeify may have another bug in it. I am a bit confused on why this function is even necessary. I left a note regarding the possible bug, but I can't modify it until I know what I'm modifying.