Skip to content

Commit

Permalink
issue #11: fixed, using timezone sensitive functions instead of nativ…
Browse files Browse the repository at this point in the history
…e datetime
  • Loading branch information
jobelenus committed Nov 30, 2015
1 parent 75a3325 commit e090055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyavatax/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = (1, 3, 5)
VERSION = (1, 3, 6)


def get_version():
Expand Down
4 changes: 2 additions & 2 deletions pyavatax/django_integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import datetime
from django.utils import timezone


class MockDjangoRecorder(object):
Expand Down Expand Up @@ -30,5 +30,5 @@ def failure(doc, response):

@staticmethod
def success(doc):
AvaTaxRecord.objects.filter(doc_code=getattr(doc, 'DocCode', None)).update(success_on=datetime.datetime.now())
AvaTaxRecord.objects.filter(doc_code=getattr(doc, 'DocCode', None)).update(success_on=timezone.now())
return RealDjangoRecorder

0 comments on commit e090055

Please sign in to comment.