pycassa/pycassa — pull request #149 by spladug (2012-05-24 22:52:22+00:00)
Title: Better support for timezones with DateType (for #145)

This is a solution for #145 as discussed in that issue. I ended up not adding in pytz support as it complicated comparisons with naive `datetime` objects significantly for little gain (when it's as simple as `pytz.utc.localize(...)` for someone who *does* want pytz support). It'd be relatively easy to add this change if desired, though the tests would need a lot of updating.

While dealing with the date marshalling, I also took the opportunity to clean up that Python <2.5 compatibility code for `struct.Struct`.