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
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$22.45



CORSAIR - VENGEANCE LPX 32GB (2x16GB) 3200MHz DDR4 C16 DIMM Desktop Memory picture

CORSAIR - VENGEANCE LPX 32GB (2x16GB) 3200MHz DDR4 C16 DIMM Desktop Memory

$59.99



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



Samsung 16GB (4x4GB) 1Rx8 PC3-12800U 1600Mhz DDR3 RAM Memory M378B5273DH0-CK0 picture

Samsung 16GB (4x4GB) 1Rx8 PC3-12800U 1600Mhz DDR3 RAM Memory M378B5273DH0-CK0

$14.00



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$23.95



RAMAXEL 8GB 2Rx8 DDR3 PC3L-12800S LAPTOP SODIMM RAM MEMORY picture

RAMAXEL 8GB 2Rx8 DDR3 PC3L-12800S LAPTOP SODIMM RAM MEMORY

$8.00



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



128GB (8x 16GB) DDR3 PC3-14900R ECC Server Memory HP DL360 DL380 DL580 G7 / G8 picture

128GB (8x 16GB) DDR3 PC3-14900R ECC Server Memory HP DL360 DL380 DL580 G7 / G8

$48.99



Lot Of 10 Mixed Samsung 16GB 2Rx4 PC4-2133P RDIMM DDR4-17000 ECC Server Memory picture

Lot Of 10 Mixed Samsung 16GB 2Rx4 PC4-2133P RDIMM DDR4-17000 ECC Server Memory

$149.99