Saturday, December 1, 2012

Strange behaviour when adding negative timedelta to mysql backed DateTimeField

I got this weird behavior, specific to mysql backend, and specific to adding a negative timedelta to DateTimeField.


I currently have a workaround where I subtract absolute timedelta based on timedelta value, butthis seems either a bug or some very strange misconfiguration.
Any help and/or suggestions, are greatly appreciated.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Qf33ts8x44UJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment