Silly me.  Thats what I get for not being too familiar with php or python. Now the date interval should be done correctly.