dstufft/django-postmark — pull request #11 by greylurk (2012-04-17 01:09:51+00:00)
Title: Dates with negative timezones weren't being parsed properly

I noticed that SubmittedAt dates with negative timezones (i.e. "2010-11-26T12:01:05.1794748-05:00") weren't getting parsed properly.

In the process of testing that, I also found that the SQLite backend throws an error when you pass it a datetime with Timezone information unless settings.IS_TZ is set.

I changed the submittedAt parsing to use a regular expression to locate the correct timezone information

Then I changed the code to recognize whether IS_TZ is set, and if it is not, convert all dates to UTC, and strip timezone information before saving them.