Added dispatch_sync to convertNSDateToISO8601