Timestamps on Logs of Cisco Devices Do Not Match Actual Time on Device

If you ever look at your logs on your Cisco router or switch and they don't seem to match the actual local time of your device, you may need to run the following command to set the logs to use the device's local time: service timestamps log datetime localtime