core: don't crash on strange timezones.