finish commit 090b8f3c9e (use timezone.now)

This commit is contained in:
Thomas NOËL 2016-05-19 16:54:45 +02:00
parent 77d414aec4
commit 58eecf95ac
1 changed files with 1 additions and 1 deletions

View File

@ -126,6 +126,6 @@ class Command(BaseCommand):
message.send()
logger.debug('email for invoice nr. %s sent' % invoice.id)
invoice.date_envoi_dernier_mail = make_aware(datetime.now(), get_current_timezone())
invoice.date_envoi_dernier_mail = timezone.now()
InvoiceNotificationEmail.objects.create(invoice_number=invoice.id)
invoice.save()