How do PCs know when the time has changed?

Solution 1:

Most operating systems have the basic rules to calculate this (e.g. first weekend after a specific date), so they can adjust on their own, without requiring a connection to any time server. This can however screw up the system's clock in case there are changes of the official rules (e.g. the latest changes for Russia) or a system backup is restored (so the system adjusts the time twice).

As an alternative, some devices might contact a remote server (they most likely do it all the time anyway) or use some other kind of embedded timestamp (e.g. broadcast as part of video text/ceefax or DVB data, when talking about television programs and receivers/recorders/TVs).

Edit: Just to mention it: Older versions of Windows (e.g. Windows 95 or Windows 98) never trusted their own estimate, so they always told the user to verify the correct time once it changed. Windows Vista and Windows 7 (not sure about the versions in between) no longer do this and just assume they're right (in addition to using a time server to sync the clock).

Solution 2:

Linux uses IANA time zone database to know when DST changes. A different story is for Windows for a number of reasons. One, Windows uses RTC in local time and Linux - in UTC. Imagine that a DST changes on Windows. This allows files to be "created" in the future and it may cause some problems. Also, older Windows treat DST differently, because then there were different DST rules and Microsoft does not provide updates for those Windows versions anymore, so they cannot now of changes in DST rules.

More on that here: http://en.wikipedia.org/wiki/Daylight_saving_time#Computing

Solution 3:

Quite simply put, your OS pushes through an update to adjust the time.

Windows does this through Windows Update, and Linux through the use of timezone files.

Solution 4:

Mobile phones manage to update the time through the network. Similarly in case of Windows, it updates through the internet. This works only if you have opted for auto time update. You can check the Date and Time settings on your mobile or PC. enter image description here