Changed the time->string conversion.