gurfin / Correctly setting the clock on a Cisco device for Swedish summer/winter time

Created Fri, 28 Feb 2025 10:11:00 +0100 Modified Mon, 14 Jul 2025 06:25:58 +0000
105 Words

Summer and winter time adjustments is something that causes quite the headache when you want all your devices to have an accurate clock. This is especially important when you are going to review logs. I will therefore share a short snippet of config which can be used to set the clock of a Cisco IOS-XE device to correctly adapt to the summer/winter time.

clock timezone SWEDEN 1 0
clock summer-time SUMMERTIME recurring last Sun Mar 3:00 last Sun Oct 3:00

In order to also display log entries with the correct timestamp you need to add the following command:

service timestamps log datetime msec localtime

yeet