During the nightmode the defender receives a bonus for defensive values. The nightmode starts and ends 1 hour earlier in wintertime than it does in summertime. The time is always related to the servertime. So when your device time is changed you will see the nightmode specific for your new set time. The nightmode can be checked when you open a foreign castle at the map: