fixed a bug. changed toString() to toISOString()