X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fd1a9915dd65789cccf27041a1f01cd4077273fc..61e9916d2287a31a55605e5e7eb9268a86e3c6db:/src/club/models.py diff --git a/src/club/models.py b/src/club/models.py index acf131b12..ba4466b18 100644 --- a/src/club/models.py +++ b/src/club/models.py @@ -14,6 +14,7 @@ from django import template from django.utils.timezone import now from django.utils.translation import ugettext_lazy as _, ungettext, ugettext, get_language from django_countries.fields import CountryField +from pytz import utc from catalogue.utils import get_random_hash from messaging.states import Level from reporting.utils import render_to_pdf @@ -240,7 +241,7 @@ class Membership(models.Model): Contact = apps.get_model('messaging', 'Contact') if self.manual: - Contact.update(email, Level.MANUAL_MEMBER, self.updated_at) + Contact.update(email, Level.MANUAL_MEMBER, datetime.combine(self.updated_at, datetime.min.time(), utc)) else: Contact.reset(email)