diff -r c1387e7748f1 .DS_Store
Binary file .DS_Store has changed
diff -r c1387e7748f1 Django-1.5.5/django/utils/timezone.py
a
|
b
|
|
277 | 277 | """ |
278 | 278 | if hasattr(timezone, 'localize'): |
279 | 279 | # available for pytz time zones |
280 | | return timezone.localize(value, is_dst=None) |
| 280 | #return timezone.localize(value, is_dst=None) |
| 281 | |
| 282 | # TRott: may throw AmbiguousTimeError (eg. 2013-10-27 02:05:35) |
| 283 | try: |
| 284 | return timezone.localize(value, is_dst=None) |
| 285 | except pytz.AmbiguousTimeError: |
| 286 | return timezone.localize(value, is_dst=False) |
| 287 | except pytz.NonExistentTimeError: |
| 288 | return timezone.localize(value, is_dst=False) |
281 | 289 | else: |
282 | 290 | # may be wrong around DST changes |
283 | 291 | return value.replace(tzinfo=timezone) |