id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 20926,postgresql 'infinity' raises 'OverflowError: date value out of range' if TZ is east of UTC,tim@…,mburst,"When a datetime field is set to 'infinity' by an external application, django will throw an 'OverflowError: date value out of range' when the corresponding model object is modified within django the next time. This only occurs, however, if the timezone which is set is not UTC (in my Example 'Europe/Berlin'). The problem is, that django translates infinity to the maximum allowed timestamp of 9999-12-31 23:59:59 but timezone unaware. When Django tries to make the timestamp timezone aware, it uses the local timezone as default, which makes the timestamp in UTC larger than the maximum allowed timestamp, throwing the Exception. I would guess, that this only applies for Timezones east of UTC.",Bug,closed,"Database layer (models, ORM)",1.5,Normal,needsinfo,,,Accepted,0,0,0,0,0,0