Fixed bug when date is offset by a month at the end of the year.
Merge remote-tracking branch 'origin/master'