fix sanitizeTime on websql implementation