Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a simple question that is quite general for all Linux systems.
If I try to set a date within the daylight saving period, "date" treats my input as an UTC date so it automatically adds one hour to my date:
(I want to enter this date: Mar 30 12:13 2007)
# date -s 033012132007
Fri Mar 30 13:13:00 CETDST 2007
("date" adds one hour to my date)
# date
Fri Mar 30 13:13:05 CETDST 2007
How can I tell the system that my date is localtime and not UTC? the "date" man page says that the time zone can be entered in [+FORMAT]. Any example of this? Is there any way of doing this without entering the local timezone?
Can't you just use the time configurations on the top right of your screen in ubuntu? P.S. what Linux are u using exactly, that might help, even if i don't have an answer, haha i'm new to it all. MJ
Can't you just use the time configurations on the top right of your screen in ubuntu? P.S. what Linux are u using exactly, that might help, even if i don't have an answer, haha i'm new to it all. MJ
Michael,
The time config is done on a remote server from an Internet browser.
take your local wallclock time, shift it to UTC. Then set the date on the remote system tell it "here's the time in UTC right now". If it knows it's own timezone it'll do the rest.
also check hwclock(1) since you probably want to jump the hardware clock so when you reboot you're not way off again.
-c
take your local wallclock time, shift it to UTC. Then set the date on the remote system tell it "here's the time in UTC right now". If it knows it's own timezone it'll do the rest.
also check hwclock(1) since you probably want to jump the hardware clock so when you reboot you're not way off again.
-c
I've decided to parse /etc/TZ as it contains all the information I need. The downside is that it's a hard task for a so simple application.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.