Fix date processing for JSON data