Changeset 3183
- Timestamp:
- 06/20/06 23:13:48 (2 years ago)
- Files:
-
- django/trunk/django/db/models/fields/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/fields/__init__.py
r3113 r3183 476 476 # MySQL will throw a warning if microseconds are given, because it 477 477 # doesn't support microseconds. 478 if settings.DATABASE_ENGINE == 'mysql' :478 if settings.DATABASE_ENGINE == 'mysql' and hasattr(value, 'microsecond'): 479 479 value = value.replace(microsecond=0) 480 480 value = str(value)
