Fixes timezone issue in tests. Fall back to datetime to support Django 1.3