Skip to content

Commit

Permalink
fix: statistics tests with GMT
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 2, 2023
1 parent a3cf363 commit 6b6a96a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions uniticket/api_rest/tests/test_02_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def setUp(self):
"organizational_office": self.office,
"date_start": None,
"date_end": None,
"created": "2020-05-08T09:30:02.759000+02:00",
"modified": "2022-04-11T13:02:23.178085+02:00",
"created": "2020-05-08T09:30:02.759000+00:00",
"modified": "2022-04-11T13:02:23.178085+00:00",
"name": "Modello di richiesta di test",
"slug": "modello-di-richiesta-di-test",
"description": "Descrizione del modulo e delle sue finalità",
Expand Down Expand Up @@ -103,6 +103,7 @@ def setUp(self):
# I close the first 10
ticket.created = timezone.localtime() - timezone.timedelta(hours=i*10)
ticket.add_competence(office=self.office, user=self.staff_2)

ticket.close(user=self.op1, motivazione = f"motivazione {i}")
ticket.closed_by = self.op1
ticket.closed_date = timezone.localtime() + timezone.timedelta(hours=1)
Expand Down
3 changes: 2 additions & 1 deletion uniticket/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@
# https://docs.djangoproject.com/en/2.1/topics/i18n/

LANGUAGE_CODE = 'en'
TIME_ZONE = 'Europe/Rome'
# TIME_ZONE = 'Europe/Rome'
TIME_ZONE = 'GMT'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Expand Down

0 comments on commit 6b6a96a

Please sign in to comment.