You are not logged in.

#1 2009-08-26 11:20:37

unregistered
Member
Registered: 2008-04-09
Posts: 134

[SOLVED] how do I change the time on the clock?

currently using xmonad with xmobar but the clock seems to be wrong after some upgrades...

.xmobarrc

Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
       , bgColor = "black"
       , fgColor = "green"
       , position = TopW L 90
       , lowerOnStart = True
       , commands = [ Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
                    , Run Memory ["-t","Mem: <usedratio>%"] 10
                    , Run Swap [] 10
                    , Run Date "%a %b %_d %l:%M" "date" 10
                    , Run Battery [] 10
                    , Run StdinReader
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "%StdinReader% }{ %cpu% | %memory%  %swap% | %battery% | Date: %date%"
       }

Last edited by unregistered (2009-08-27 13:53:28)

Offline

#2 2009-08-26 13:26:56

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED] how do I change the time on the clock?

use the date command un command line. You need to be root.

Offline

#3 2009-08-27 00:57:55

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: [SOLVED] how do I change the time on the clock?

ok so I did
sudo date -s "8/27/2009 08:55:00"

and running the date command shows the updated time but xmobar does not update and when I restart the computer, it goes back to the wrong time, what should I do?

EDIT: ok when I restart xmonad, xmobar shows the correct time but the problem is everytime I restart, it goes back to the wrong time, how can I make the computer store the change?

Last edited by unregistered (2009-08-27 01:01:46)

Offline

#4 2009-08-27 01:02:08

chender
Member
From: Toronto, Canada
Registered: 2008-11-24
Posts: 41
Website

Re: [SOLVED] how do I change the time on the clock?

I had this, reinstalled coreutils and the problem went away.  I got lucky I think.


--
thinkpad X60s [t400s coming soon] | archlinux i686 | xmonad | dmenu |

Offline

#5 2009-08-27 01:19:45

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: [SOLVED] how do I change the time on the clock?

chender wrote:

I had this, reinstalled coreutils and the problem went away.  I got lucky I think.

reinstalling coreutils and updating the date didn't work for me sad when i reboot date's wrong again

Offline

#6 2009-08-27 02:05:10

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] how do I change the time on the clock?

sounds like you need to check that your BIOS is in localtime or UTC and set rc.conf accordingly.  then just install openntp and forget about it.

Last edited by brisbin33 (2009-08-27 02:06:04)

Offline

#7 2009-08-27 09:45:18

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: [SOLVED] how do I change the time on the clock?

I didn't change my bios or rc.conf settings and it worked perfectly fine before the update.
My rc.conf says that its set to localtime, i forgot what my bios is, I'll check the next time I restart...

EDIT: ok so I checked and the BIOs didn't say anything about whether its set to localtime or whatever( using phoenixBIOs ), what I do know is that the time set at the BIOs is different from the one showing in the clock on xmobar. The time on BIOs is correct but incorrect for the one in the clock on xmobar

Last edited by unregistered (2009-08-27 11:30:23)

Offline

#8 2009-08-27 12:50:48

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: [SOLVED] how do I change the time on the clock?

I installed openntpd and ran it in the background by putting @openntpd into the daemons array, the problem still persist after each restart
no matter whether rc.conf is set to UTC or localtime. I have to do sudo /etc/rc.d/openntpd restart and restart xmonad in order to get the correct time but even then, the problems comes up again the next time I restart sad sad

Rather than just a few hours in advance now, its about 1 day in advance everytime I restart

Last edited by unregistered (2009-08-27 12:51:51)

Offline

#9 2009-08-27 13:24:43

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] how do I change the time on the clock?

do you have an /etc/rc.conf.pacnew?

Offline

#10 2009-08-27 13:53:09

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: [SOLVED] how do I change the time on the clock?

brisbin33 wrote:

do you have an /etc/rc.conf.pacnew?

ok so I changed the /etc/rc.conf.pacnew to rc.conf and it worked fine now, thanks.

Offline

Board footer

Powered by FluxBB