make timezone check more robust