fix time format for elasticsearch