fix date formatting glitch