Commit ed443054 authored by Romain Courteaud's avatar Romain Courteaud

Open Order line start/stop date have the same timezone.

parent 2aaf89f7
......@@ -853,6 +853,7 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
# calculate stop date to be after now, begin with start date with precision
# of month
now = DateTime()
now = now.toZone(request_time.timezone())
stop_date = getClosestDate(target_date=now, precision='month')
stop_date = addToDate(stop_date, to_add={'second': -1})
self.assertEqual(stop_date, line.getStopDate())
......
258
\ No newline at end of file
259
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment