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
  •  


ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield picture

ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield

$42.00



***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3 picture

***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3

$29.77



Asus H110M-C Rev 1.03 mATX Desktop Motherboard LGA 1151/Socket H4 DDR4 SDRAM picture

Asus H110M-C Rev 1.03 mATX Desktop Motherboard LGA 1151/Socket H4 DDR4 SDRAM

$26.99



Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151 picture

Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151

$31.95



ASUS Prime Q270M-C LGA1151 DP HDMI VGA SATA 6GB/s USB 3.0 MicroATX Motherboard picture

ASUS Prime Q270M-C LGA1151 DP HDMI VGA SATA 6GB/s USB 3.0 MicroATX Motherboard

$37.99



Gigabyte AMD B550 UD AC Gaming Motherboard - AMD B550 Chipset - AM4 Socket - AMD picture

Gigabyte AMD B550 UD AC Gaming Motherboard - AMD B550 Chipset - AM4 Socket - AMD

$89.99



MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard picture

MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard

$67.99



Gigabyte GA-B75M-HD3 Intel LGA1155 DDR3 Desktop Motherboard MicroATX USB 3.0  picture

Gigabyte GA-B75M-HD3 Intel LGA1155 DDR3 Desktop Motherboard MicroATX USB 3.0

$26.99



BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled picture

BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled

$59.99



GIGABYTE Z690 AORUS Elite AX (LGA 1700/Intel 7690/WiFi 6) - Gaming Motherboard picture

GIGABYTE Z690 AORUS Elite AX (LGA 1700/Intel 7690/WiFi 6) - Gaming Motherboard

$99.86