fixes for switches in daylight savings time