erp5_core: fix addToDate when removing a month

See merge request !1768
35 jobs for master in 0 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:01:47

passed ERP5.PerformanceTest-Master

00:27:04

failed ERP5.UnitTest-Master

01:44:12

failed ERP5.UnitTest-Zope2

03:59:59

passed SlapOS.Eggs.UnitTest-Master.Python2

00:15:05

passed SlapOS.Eggs.UnitTest-Master.Python3

00:17:18

passed Wendelin.UnitTest-Master

00:26:54

passed ERP5.CodingStyleTest-Master

01:03:02

passed ERP5.CodingStyleTest-Master

01:21:34

passed ERP5.CodingStyleTest-Master

01:10:43

passed ERP5.PerformanceTest-Master

00:26:50

passed ERP5.PerformanceTest-Master

00:27:03

passed ERP5.PerformanceTest-Master

00:27:06

failed ERP5.UnitTest-Master

02:37:20

failed ERP5.UnitTest-Master

01:47:43

failed ERP5.UnitTest-Master

02:14:20

failed ERP5.UnitTest-Zope2

04:22:08

failed ERP5.UnitTest-Zope2

03:59:48

failed ERP5.UnitTest-Zope2

04:19:44

passed SlapOS.Eggs.UnitTest-Master.Python2

00:15:03

passed SlapOS.Eggs.UnitTest-Master.Python2

00:15:02

passed SlapOS.Eggs.UnitTest-Master.Python2

00:15:18

passed SlapOS.Eggs.UnitTest-Master.Python2

00:14:47

passed SlapOS.Eggs.UnitTest-Master.Python2

00:14:16

passed SlapOS.Eggs.UnitTest-Master.Python3

00:18:26

passed SlapOS.Eggs.UnitTest-Master.Python3

00:18:40

passed SlapOS.Eggs.UnitTest-Master.Python3

00:17:01

passed SlapOS.Eggs.UnitTest-Master.Python3

00:27:15

passed SlapOS.Eggs.UnitTest-Master.Python3

00:16:11

passed Wendelin.UnitTest-Master

00:33:18

passed Wendelin.UnitTest-Master

04:15:00

passed Wendelin.UnitTest-Master

00:27:13

passed Wendelin.UnitTest-Master

00:45:20

passed Wendelin.UnitTest-Master

00:39:05

passed Wendelin.UnitTest-Master

00:35:56