Search code examples
linuxdatabasedstrhel

How does Linux handle DST (daylight saving time?


How does linux handle daylight saving time (DST)

Does the swich happen instantly, like 3'o clock swiched instantly to 2'o clock ? or it changes slowly I ask you this becouse i have large date base on my servers and if this swich happens instantly one hour on entryes in the data base will pe owerwritten

How can I solve this problem ?


Solution

  • It changes instantly:

    Sun 26 Oct 03:59:56 EEST 2014
    Sun 26 Oct 03:59:57 EEST 2014
    Sun 26 Oct 03:59:58 EEST 2014
    Sun 26 Oct 03:59:59 EEST 2014
    Sun 26 Oct 03:00:00 EET 2014
    Sun 26 Oct 03:00:01 EET 2014
    Sun 26 Oct 03:00:02 EET 2014
    Sun 26 Oct 03:00:03 EET 2014
    Sun 26 Oct 03:00:04 EET 2014
    Sun 26 Oct 03:00:05 EET 2014
    Sun 26 Oct 03:00:06 EET 2014
    Sun 26 Oct 03:00:07 EET 2014
    Sun 26 Oct 03:00:08 EET 2014
    

    This is done on a test machine, and it switched immediately.