Add test condition for Travis CI's time zone

Travis CI's time zone was changed from 'UTC' to 'Etc/UTC' in 828b4eb. `test_shift()` needs to account for this as well.