Commit 7ea87fa0 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Forgot to implement _getNextMonth.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39379 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 52a5eccd
...@@ -140,6 +140,17 @@ class PeriodicityMixin: ...@@ -140,6 +140,17 @@ class PeriodicityMixin:
return date.timezone() return date.timezone()
return None return None
def _getNextMonth(self, date, timezone):
year = date.year()
month = date.month()
if month == 12:
year += 1
month = 1
else:
month += 1
return DateTime(year, month, 1, 0, 0, 0, timezone)
def _getNextDay(self, date, timezone): def _getNextDay(self, date, timezone):
if timezone is not None: if timezone is not None:
new_date = DateTime(date.timeTime() + 86400.0, timezone) new_date = DateTime(date.timeTime() + 86400.0, timezone)
......
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