Is this really needed? We have other UTs where $ENV{TZ} is modified without this function.
If it is needed, please restore the original TZ after the loop (by calling it again?).