Follow-up to #27233
The current FormatISO8601DateTime
function will return an empty string if it encounters an error when converting the int64_t
seconds-since-epoch to a formatted date time. In the unlikely case that happens, here strStamped.pop_back()
would be undefined behavior.