User Tools

Site Tools


time_shifting_issues

Table of Contents

If you want to send us your comments, please do so. Thanks
More on comments


Time shifting issues

The switching of date because of daylight saving time can lead to a shift in time for the same file saved on multiple locations. An example is a backup. Setting the system clock and local time to UTC can solve this. See also man hwclock under ¨LOCAL vs UTC¨. The disadvantage is that your clock is not showing the actual local time any more. With a dual clock or two clocks in the tray this can be solved. Orage panel clock can be an option.

File locations

/etc/timezone
/etc/localtime (binary file)

Commands

Command (as root)Function
dpkg-reconfigure tzdataEdit the timezone. Do not use tzconfig because it is obsolete
tzselectDoes the same as dpkg-reconfigure tzdata which is prefered. Is not able to set the clock to UTC
hwclock --showShow the time and date as set in the hardware clock
date -uShow the time and date as set in the system clock
hwclock --set --date "2014-11-21 19:24:35" --utcSet the hardware clock to a time in UTC
hwclock --hctosysSet the system time from the hardware clock

Remarks:

  • The hwclock --hctosys option can not be used in the same command as the hwclock --set option
  • The hwclock --verbose option can be used to show a more detailed output

Errors

It can be the case that the hardware clock and the system clock do not display the same time. In that case run hwclock --hctosys


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
time_shifting_issues.txt · Last modified: 05-12-2022 14:10 by wim