Skip to content
Snippets Groups Projects
Commit 533fc7c1 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

string changed to timezoned object

parent dde8b4a5
No related branches found
No related tags found
1 merge request!272Resolve "fix datetime without TZ warnings"
Pipeline #34328 passed
......@@ -159,7 +159,7 @@ class AppointmentsViewTests(LoggedInTestCase):
def test_save_appointments_edit_with_valid_nd_number(self):
subject = create_study_subject()
visit = create_visit(subject)
visit.datetime_begin = "2011-01-01"
visit.datetime_begin = timezone.now().replace(year=2011)
visit.save()
appointment = create_appointment(visit, get_today_midnight_date())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment