(bug) fix time formatting error in AJAX request