An automatic mode is set in Google Maps to automatically switch between day and night modes. The day and night modes are not determined by time, but by the switch of the car headlights!