TST: Fix timezone test to avoit dateutil issue

Closes #7993.