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 tzdata | Edit the timezone. Do not use tzconfig because it is obsolete |
tzselect | Does the same as dpkg-reconfigure tzdata which is prefered. Is not able to set the clock to UTC |
hwclock --show | Show the time and date as set in the hardware clock |
date -u | Show the time and date as set in the system clock |
hwclock --set --date "2014-11-21 19:24:35" --utc | Set the hardware clock to a time in UTC |
hwclock --hctosys | Set 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.