Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: Resetting clock local time.

  1. #11
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    Quote Originally Posted by Werner P. Schulz View Post
    • Set BIOS time to UTC (= Greenwich Time)
    • Edit "tz=..." (my posting #3)
    • right-mouse-click on the clock in the panel


    ...

    • read the man-page strftime
    • edit the string from "Clock Format" as you need
    Not feasible, since I already have a Debian 6.0.3 system, it resets the bios according to my localisation values set there, aided by ntpdate. So you have to please suggest another alternative. I have tried TZ cheatcode but that does not work either. I had also run tzselect (=asia/kolkata) here in knoppix, but that too does not work.

  2. #12
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272
    The process I am trying to implement is the most logical and generalised one, so please suggest something along the line.

  3. #13
    Well, I will read up on it and see what you are talking about. Thanks for all of the help. I still have a lot to learn, so, and time to learn it. Wish I had more time to spend reading this stuff, but, I have to do other things too. I really haven't figured out the Micro Re-Mastering, but, I suppose I will eventually. I will be posting other issues as well.

  4. #14
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    The UNIX/ LINUX way is:

    • always BIOS time = UTC

    With Debian I use the crontab:
    Code:
    40      10,15,20        * * *   /usr/sbin/ntpdate -v de.pool.ntp.org; /sbin/hwclock -u --systohc
    With dual boot Windows installation you have to register:
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\↲
        Services\W32Time\TimeProviders\NtpClient]
    "SpecialPollInterval"=dword:00000e10
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\↲
        CurrentVersion\DateTime\Servers]
    @="1"
    "1"="de.pool.ntp.org"
    "2"="time.nist.gov"
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\↲
        TimeZoneInformation]
    "RealTimeIsUniversal"=dword:00000001

  5. #15
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    Why configure crontab? My system automatically updates the time when I log in to the internet. The ntpdate client listens to the network time servers by itself.
    I don't use windoze, so I would not be interested in its registry codes.
    Okay, this is one thing that we have got to look into in Knoppix.
    But that the BIOS is updated by ntpdate is absolutely confirmed. In doze, if you change time the BIOS time is affected too.

  6. #16
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Why configure crontab?
    Why not?
    But that the BIOS is updated by ntpdate is absolutely confirmed.
    Why do you think so? From man ntpdate:
    ntpdate sets the local date and time by polling the Network Time Protocol (NTP) server(s) given as the server arguments to determine the correct time.

  7. #17
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631

    An heretical lazy man's approach to Linux time-keeping.

    .
    I have a nice Dell laptop which came equipped with Windows 7.
    I rarely use Windows 7, but it allows the laptop to be very close
    to 'Observatory time' since it syncs up my hardware clock with an
    ntp server every time it IS used. I also corrects for daylight
    savings time, if allowed a peek at the internet. The hardware
    clock in question is set to local Eastern US time. I also set
    my Knoppix desktop to local 12-hour am/pm format.

    I don't use ntpdate or any other Knoppix time correction.
    The consequences of this are two as far as I can tell.
    1. The result of a date command will erroneously append UTC to
    the otherwise very nearly correct local time.
    2. There is a small error, currently about 15 seconds, which I
    observe by occasionally checking against the USNO.
    See: http://tycho.usno.navy.mil/simpletime.html.

    If I wanted to tweak the small error, I could spend a few
    minutes with Window 7.
    If I wanted to tweak the erroneous UTC, I could use an alias
    date="date | sed 's\UTC\EST\'" or date="date | sed 's\UTC\EDT\'"

    I rarely find the need to do either.
    Nor do I care to disturb my Windows 7 which works ok for what it is.

  8. #18
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    Quote Originally Posted by Werner P. Schulz View Post
    Why not?Why do you think so? From man ntpdate:
    Because I have seen that happening with my BIOS Let us not be hasty. We can solve this issue universally if we think hard.

  9. #19
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272
    Quote Originally Posted by rajibando View Post
    Because I have seen that happening with my BIOS Let us not be hasty. We can solve this issue universally if we think hard.
    I am sorry, I should have been more elaborate. Actually, I have a localised system, as explained earlier. ntpdate sends that process the ntp data( time and date), and it localises the date time according to my settings(Asia/Kolkata) and rewrites the BIOS on that basis.

  10. #20
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Please tell us the output from
    Code:
    cat /proc/driver/rtc; date
    1. from Debian
    2. from Knoppix

    My values are with Debian
    Code:
    rtc_time    : 07:38:25
    rtc_date    : 2013-01-28
    alrm_time    : 00:00:00
    alrm_date    : ****-**-**
    alarm_IRQ    : no
    alrm_pending    : no
    24hr        : yes
    periodic_IRQ    : no
    update_IRQ    : no
    HPET_emulated    : yes
    DST_enable    : no
    periodic_freq    : 1024
    batt_status    : okay
    Mo 28. Jan 08:38:25 CET 2013
    with Knoppix
    Code:
     cat /proc/driver/rtc; date
    rtc_time    : 07:41:11
    rtc_date    : 2013-01-28
    alrm_time    : 00:00:00
    alrm_date    : 2013-01-29
    alarm_IRQ    : no
    alrm_pending    : no
    update IRQ enabled    : no
    periodic IRQ enabled    : no
    periodic IRQ frequency    : 1024
    max user IRQ frequency    : 64
    24hr        : yes
    periodic_IRQ    : no
    update_IRQ    : no
    HPET_emulated    : no
    BCD        : yes
    DST_enable    : no
    periodic_freq    : 1024
    batt_status    : okay
    Mon Jan 28 08:41:11 CET 2013
    Timezone for me is "Europe/Berlin"

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


ARUBA J9772A 2530-48G PoE+ 48 PORT ETHERNET SWITCH W/ RACK EARS J9772-60301 picture

ARUBA J9772A 2530-48G PoE+ 48 PORT ETHERNET SWITCH W/ RACK EARS J9772-60301

$140.23



Cisco SG300-52-Port Gigabit Managed Rack Mountable Network Switch picture

Cisco SG300-52-Port Gigabit Managed Rack Mountable Network Switch

$44.95



Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture

Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED

$99.97



HPE ARUBA 2530-24G J9773A PoE+ 24-PORT GIGABIT ETHERNET SWITCH J9773-60201 picture

HPE ARUBA 2530-24G J9773A PoE+ 24-PORT GIGABIT ETHERNET SWITCH J9773-60201

$93.24



NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter picture

NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter

$14.99



Netgear ProSafe FS726T 24 Port 10/100 Smart Switch w/2 Gigabit Ports picture

Netgear ProSafe FS726T 24 Port 10/100 Smart Switch w/2 Gigabit Ports

$19.99



Cisco SG300-52 52 Port Gigabit Managed Network Switch w/ Rack Ears picture

Cisco SG300-52 52 Port Gigabit Managed Network Switch w/ Rack Ears

$34.99



TP-Link TL-SG108 8-Port 10/100/1000 Mbps Gigabit Ethernet Desktop Switch FREE SH picture

TP-Link TL-SG108 8-Port 10/100/1000 Mbps Gigabit Ethernet Desktop Switch FREE SH

$14.99



HP 2530-48G PoE+ 48 Port PoE Gigabit Ethernet Network Switch J9772A picture

HP 2530-48G PoE+ 48 Port PoE Gigabit Ethernet Network Switch J9772A

$99.98



Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch picture

Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch

$49.99