Some servers export dateTimes as ISO 8601 strings. I don't think the Stata clock() function can parse ISO 8601, but we should be able to modify the string before passing it to clock().
One of the reasons that clock() can't parse ISO 8601 is that clock() doesn't understand time zones, which are an optional part of ISO 8601. A time value can also include a time zone designator. For a time value, I think we can just strip the time zone designator, as Collect doesn't actually allow the user to select a time zone. I'm less sure what to do about dateTime values. Maybe we also strip their time zone designators, but issue a warning? Or maybe we can check whether all dateTime values are in the same time zone, and issue the warning only if they aren't? Alternatively, perhaps we could split the time zone into a separate variable? I doubt we want to implement any actual time zone conversion in Stata...