emencia / emencia-django-newsletter

An app for sending newsletter by email to a contact list.
189 stars 72 forks source link

TypeError: can't compare offset-naive and offset-aware datetimes #67

Closed euricojardim closed 12 years ago

euricojardim commented 12 years ago

I wasn't able to use ./manage.py send_newsletter with timezone aware sites.

Try with django1.4 and leave TIMEZONE setting as True and it will throw TypeError: can't compare offset-naive and offset-aware datetimes.

mailer.py line 198, in can_send if self.newsletter.sending_date <= datetime.now()

Fantomas42 commented 12 years ago

Hi @euricojardim,

unfortunately EDN is not already compatible with Django 1.4.

So you must use Django 1.3, or make a patch. If you do the patch, a pull request would be very appreciated.

Regards

euricojardim commented 12 years ago

Hi @Fantomas42,

I did the pull request as you suggested.

Regards