Make timeval tests independent of the environment

Some of the tested formats are locale-dependent, so unset
the TZ environment variable before testing them.