Fix error in monthly logs when rolling-over year boundaries.