changed time format for JSON and AJAX