summaryrefslogtreecommitdiff
path: root/ishtar_common/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r--ishtar_common/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py
index 55feef714..d6f622fc0 100644
--- a/ishtar_common/forms.py
+++ b/ishtar_common/forms.py
@@ -35,7 +35,7 @@ from django.core.exceptions import ValidationError
from django.core import validators
from django.forms.formsets import BaseFormSet, DELETION_FIELD_NAME
from django.urls import reverse
-from django.utils import formats, translation
+from django.utils import formats, translation, timezone
from django.utils.functional import lazy
from django.utils.safestring import mark_safe
from django.utils.text import slugify
@@ -1173,7 +1173,7 @@ class DocumentItemSelect(ImportSelect):
def get_now():
- return datetime.datetime.now().strftime(formats.get_format("DATE_INPUT_FORMATS")[0])
+ return timezone.now().strftime(formats.get_format("DATE_INPUT_FORMATS")[0])
class ClosingDateFormSelection(IshtarForm):