BUG: bug in date formatting for index