Forum
« [SOLVED] Wrong time setting »

Welcome Guest. Please Login or Register.
May 18, 2013, 12:19pm



Return to or visit the SalineOS webpage

Forum :: General :: Installation and Setup Support :: [SOLVED] Wrong time setting
Page 1 of 2 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: [SOLVED] Wrong time setting (Read 881 times)
fitus
New Member
*
member is offline

[avatar]

There is nothing like ~



Joined: Jan 2011
Gender: Male
Posts: 33
 [SOLVED] Wrong time setting
« Thread Started on Jan 25, 2011, 3:41pm »

ok, so far I have been enjoying salineos, and am happy with it, but for some reason on all the computers at home when I set the right time and then when I restart my computers it goes back to the old time, I know I am setting the time right, but salineos it's not keeping the change, how can I fix this problem, I have used this command to set the time
date --set and also sudo dpkg-reconfigure tzdata
but none of them keep the time when I restart, maybe salineos does things different that debian?, any help will be very appreciated
thanks.

fitus
« Last Edit: Jan 26, 2011, 8:13pm by fitus »Link to Post - Back to Top  IP: Logged

There is nothing like ~
Arch | Debian | Bsd | Salineos
Intel Core i7-970 CPU, 12GB DDR3-PC1600 RAM, NVIDIA GTX570 1.2GB Video, GigaByte X58 USB3 & SATA-III MB, Kingston 30GB SSD, 1TB SATA-III 7200 RPM HD, Samsung 12X Blu-Ray Combo Drive, Azza Hurrican 2000 Case
" The perfect game machine "
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,336
 Re: Wrong time setting
« Reply #1 on Jan 25, 2011, 5:19pm »

Pretty sure this is a local time/UTC issue try inputting this in the terminal as root: hwclock --systohc --utc
Link to Post - Back to Top  IP: Logged
fitus
New Member
*
member is offline

[avatar]

There is nothing like ~



Joined: Jan 2011
Gender: Male
Posts: 33
 Re: Wrong time setting
« Reply #2 on Jan 25, 2011, 7:08pm »

I did that and still does not keep the right time, now it went 6 hours ahead of my time
« Last Edit: Jan 25, 2011, 7:09pm by fitus »Link to Post - Back to Top  IP: Logged

There is nothing like ~
Arch | Debian | Bsd | Salineos
Intel Core i7-970 CPU, 12GB DDR3-PC1600 RAM, NVIDIA GTX570 1.2GB Video, GigaByte X58 USB3 & SATA-III MB, Kingston 30GB SSD, 1TB SATA-III 7200 RPM HD, Samsung 12X Blu-Ray Combo Drive, Azza Hurrican 2000 Case
" The perfect game machine "
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,336
 Re: Wrong time setting
« Reply #3 on Jan 25, 2011, 7:34pm »

You can try logging in as root then hwclock --systohc --localtime and rebooting or hwclock --systohc --utc and rebooting. If neither of those work you can install rdate and have it set the clock from a server when the machine boots. You will need to install rdate then open the xfce4 settings manager on the bottom panel and go to sessions and startup. Click add name it rdate and for the command enter rdate 129.6.15.28

Edit: You really should be getting the same behavior out of SalineOS as Debian Squeeze when it comes to your clock.
« Last Edit: Jan 25, 2011, 7:35pm by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
fitus
New Member
*
member is offline

[avatar]

There is nothing like ~



Joined: Jan 2011
Gender: Male
Posts: 33
 Re: Wrong time setting
« Reply #4 on Jan 25, 2011, 8:55pm »

fixed, I dualboot and it seems that when I boot to slackware it takes over the time messing with salineos time ;)
Link to Post - Back to Top  IP: Logged

There is nothing like ~
Arch | Debian | Bsd | Salineos
Intel Core i7-970 CPU, 12GB DDR3-PC1600 RAM, NVIDIA GTX570 1.2GB Video, GigaByte X58 USB3 & SATA-III MB, Kingston 30GB SSD, 1TB SATA-III 7200 RPM HD, Samsung 12X Blu-Ray Combo Drive, Azza Hurrican 2000 Case
" The perfect game machine "
malspa
Full Member
***
member is offline

[avatar]



Joined: Jan 2011
Posts: 171
Location: albuquerque
 Re: Wrong time setting
« Reply #5 on Jan 25, 2011, 9:26pm »

Does Slackware have a /etc/default/rcS file? In my multi-boot set-up, sometimes I've had to go in there and change UTC=yes to UTC=no.
Link to Post - Back to Top  IP: Logged
Jimmy
New Member
*
member is offline

[avatar]



Joined: Jan 2011
Gender: Male
Posts: 18
 Re: Wrong time setting
« Reply #6 on Jan 26, 2011, 3:36pm »


Jan 25, 2011, 8:55pm, fitus wrote:
fixed, I dualboot and it seems that when I boot to slackware it takes over the time messing with salineos time ;)

What malspa said is the problem with Saline, you need to change /etc/default/rcS UTC=yes to UTC=no. While the Saline Installer is installing the system to use local time /etc/default/rcS is saying UTC=yes and is working against the Installer.

As for Slackware I don't know, but I can tell you that if any OS on a computer that is using UTC will trow the time off for all systems using LOCAL time, all the systems need to be using the same setting.

My thanks for the development of Saline OS, but "/etc/default/rcS UTC=yes" is a bug as far as I'm concerned and the only bug I have been able to find in this wonderful Distro.
Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,336
 Re: Wrong time setting
« Reply #7 on Jan 26, 2011, 3:51pm »

Well in my defense that is the default for Debian and I built off Debian. I will consider changing it for the SalineOS 1.2 builds. Also, in my defense my computer hasn't had Windows on it in 10 years, so I am used to using UTC. Microsoft is the one backwards, and everyone trying to be Microsoft compatible ;) Though I could probably benefit SalineOS by making it backwards too.
« Last Edit: Jan 26, 2011, 3:54pm by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
Jimmy
New Member
*
member is offline

[avatar]



Joined: Jan 2011
Gender: Male
Posts: 18
 Re: Wrong time setting
« Reply #8 on Jan 26, 2011, 4:22pm »

@ Anthony Nordquist
Now I don't want to step on any toes here, being a newly registered user and all, but being a Debian user for more than 8 years this is the first time I have ran into this time problem and I just now checked a bunch of installed Debian systems (Lenny, Squeeze and Sid) and /etc/default/rcS says UTC=no on all of them, Saline OS is the first time I have ever had to go into /etc/default/rcS and change UTC to say no, outside of that I don't know what to tell you. And if you do change that please don't change anything else. :-)

I have 4 desktops and 2 laptops for testing, sorry I missed your testing phase.

Link to Post - Back to Top  IP: Logged
malspa
Full Member
***
member is offline

[avatar]



Joined: Jan 2011
Posts: 171
Location: albuquerque
 Re: Wrong time setting
« Reply #9 on Jan 26, 2011, 4:27pm »

Well, I had to go into /etc/default/rc5 in Squeeze and change it to UTC=no, but as I recall it was because I chose the wrong setting during the installation. With Saline, I don't think there was anything during the installation about using UTC or not using it.
Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,336
 Re: Wrong time setting
« Reply #10 on Jan 26, 2011, 4:41pm »

Debian defaults to UTC in the installer but does in fact allow you to change it. SalineOS uses the choice I made when installing Debian about 6 months ago. And, again if its not Unix like I don't care to use it. BSD, Linux, Haiku and Hurd are the only operating systems this machine I am using now has ever run. I have added changing /etc/default/rcS to my to do list for the SalineOS 1.2 builds, since it seems everyone is expecting things backwards. I have no issue and take no offense to wanting it changed. This is something that didn't cross my mind and was never pointed out to me in testing. I will do what is best for the users of SalineOS and change it, but its too late for 1.1.

I will put on a sad face for about 5 minutes when I set my hardware clock to local time. But, I can easily live with it.
« Last Edit: Jan 26, 2011, 4:44pm by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
malspa
Full Member
***
member is offline

[avatar]



Joined: Jan 2011
Posts: 171
Location: albuquerque
 Re: Wrong time setting
« Reply #11 on Jan 26, 2011, 5:35pm »

Well I don't see it as a bug, maybe because I've screwed up my clocks so many times installing distros on this machine. For some reason I always mess up the UTC thing. I don't know what's backwards and what isn't, I just know how to fix it.
Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,336
 Re: Wrong time setting
« Reply #12 on Jan 26, 2011, 5:45pm »

http://en.wikipedia.org/wiki/Unix_time
Link to Post - Back to Top  IP: Logged
Jimmy
New Member
*
member is offline

[avatar]



Joined: Jan 2011
Gender: Male
Posts: 18
 Re: Wrong time setting
« Reply #13 on Jan 26, 2011, 6:03pm »

You're a good man Anthony Nordquist and I'm really enjoying Saline Linux, it is what I would call "Pure Debian Stable" and probably the easiest way there is to get a pure Debian system onto a computer and if that was your intentions, then you have done a marvelous job.
« Last Edit: Jan 26, 2011, 6:04pm by Jimmy »Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,336
 Re: Wrong time setting
« Reply #14 on Jan 26, 2011, 6:13pm »

My main intentions were to make a distro that was designed from the ground up as an Xfce distro. Xubuntu is worried about being Ubuntu, Mint Xfce is worried about being Mint, Fedora Xfce is worried about being Fedora .. I could go on. I have been primarily a user of Debian + Backports for years, though I often have other distributions laying around. I don't really like running Debian testing systems unless I want to help fix something. The ability to get backports installed automatically after they have been tested for stability is the system I wanted, and nobody was making. So I got it in my head that I could provide that... Six months later and almost all my free time later SalineOS was born.
« Last Edit: Jan 26, 2011, 6:15pm by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
Page 1 of 2 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]



Anthony Nordquist, on behalf of the SalineOS project, is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. As such, if you click the above banner and then make any purchase including digital downloads, a small percentage will be paid to the SalineOS project.
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile