diary date bug fix