Commit c11547c2 authored by Yusei Tahara's avatar Yusei Tahara

Use DateTime.Date() instead of DateTime.strftime('%Y/%m/%d') due to the summer...

Use DateTime.Date() instead of DateTime.strftime('%Y/%m/%d') due to the summer time problem on DateTime.strftime.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25504 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ace976b3
......@@ -53,5 +53,5 @@ class DayMovementGroup(MovementGroup):
def _getStartDate(self, movement):
start_date = DateTime(movement.getStartDate() is not None and\
movement.getStartDate().strftime('%Y/%m/%d') or None)
movement.getStartDate().Date() or None)
return start_date
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