Date constructor and toISOString fixes.