System time is incorrect

I just recently installed Arch Linux i686.  I thought I got the time set correctly when I first installed Arch, but now I notice that the system time is incorrect.  I live in Tucson, Arizona.  Arizona (execpt for the Navajo Indian reservation) is on MST (GMT-7) year round, no DST.  I dual boot this machine to both Windows and Linux, so the hardware clock is set to local time.  When I boot to Windows, the correct time is displayed.  in /etc/rc.conf, I have
HARDWARECLOCK="localtime"
TIMEZONE="Ameria/Phoenix"
When I boot Arch, and type the date command, it displays localtime - 7 hours.  Also, if a create a new file and do a "ls -l" command, the timestamp on the file is localtime - 7 hours.  It appears that Arch thinks the hardwareclock is set to UTC, even though I have HARDWARECLOCK="localtime" specified.
How can I fix this?
(I did a pacman update a week ago and it looked like it installed a new kernel.  Maybe this is when the incorrect system time started.  Not sure.)
Charles Bailey

The Arch boot sequence, from the wiki page, http://wiki.archlinux.org/index.php/Boot:
1  Grub or Lilo
2  Kernel and memory management functions loaded into memory
3  init called - follows instructions from /etc/inittab
4  /etc/rc.sysinit is called.
Early in rc.sysint , from my x86-64 Arch on a dual AMD cpu, the realtime-clock driver is loaded. In my case, it's rtc-cmos. Bugs have been reported in various places about this driver. I don't know which version of the driver, or which kernels might be affected. The driver is for PC-style computers; without it ACPI would not function.
Then, the hwclock may be adjusted for system drift depending on use of localtime or UTC.
After the local filesystems are mounted, the hwclock may be adjusted again.
You could add lines to rc.sysinit to echo the hwclock time to the screen for the boot sequence using  "/sbin/hwclock -r"  to see which adjustment instance is causing the errors and then take steps to correct the adjustment or prevent the adjustment from occurring.
Edited for clarity and typos.
Last edited by thisoldman (2009-09-09 02:17:27)

Similar Messages

  • System Time is Incorrect After Waking From Hibernation

    If my MBA runs out of battery when its asleep, after coming back to life, the system time is wrong. The time is correct when it comes back from normal sleep.
    Message was edited by: DrFooMod2 -- Corrected OS version

    Hi
    Same here. On PC boards the clock is usually buffered by a small battery.
    Maybe there is no battery in the MBA. But the clock is synchronized over the internet by asking a time server. So you dont need to do it manually
    HTH
    Enno
    DrFooMod2 wrote:
    If my MBA runs out of battery when its asleep, after coming back to life, the system time is wrong. The time is correct when it comes back from normal sleep.
    Message was edited by: DrFooMod2 -- Corrected OS version

  • Incorrect System Time

    The mobo is a 875P Neo-FIS2R and the problem is that both in the BIOS and in the OS, the system time is incorrect.
    I've tried changing the battery, no good though X(
    Don't know what else to do ?(  I've never experienced this kind of problem before.
    BIOS version 1.6.
    Except the above problem, everything else works just great wit this m/b

    The clock should tick even without a battary at all, it will simply reset each time you power down.
    Since you don't say the bios settings reset each time it's safe to assume the batary is fine and that the RTC is probably dead.
    Just to be sure befor you replace the board, remove all the PCI cards, mouse etc...  Then clear the CMOS ( disconnect the main power 1'st ).
    Just with the minimal hardware and a KB check if the clock is still frozen.
    If it is you need to have it replaced.

  • Timestamp incorrect system time

    Hello, Guys,
    Quick question about system time and timestamp inconsistency.
    I used the following program to generate analog output (with duty cycle) but as i am outputting, it give me the time of 12/31/1903 at 16:00.
    I checked and reset the system time and it made no difference.  please advise,
    thank you.
    ck
    Message Edited by uclabme on 04-17-2006 05:18 PM
    Attachments:
    Square_analog_output_voltage.vi ‏91 KB
    abc.txt ‏32 KB

    Hello,
    The square waveform generator VI that is producing the waveform doesn't use system time as its basis, and that appears to be where the issue lies.  By default, the output waveform will be aligned to a t0 (initial time) of 0, since the waveform time stamp in this case is relative to the start of the program.  To align the time with the current system time, all you need to do is use the Align Waveform Timestamps VI to shift the t0 value of the generated waveform to match the current time.  I've attached an example (aligntimes.vi)  built in LabVIEW 7.1.1 that demonstrates - you should be able to adapt it very easily to fit your needs. 
    Cheers,
    Matt Pollock
    National Instruments
    Attachments:
    aligntimes.vi ‏44 KB

  • Time is incorrect

    The time on my system is reporting incorrectly.
    It's 7:41 PM here, I'm CDT (UTC-5:00) but timedatectl status says:
    Local time: Sat 2013-10-26 14:41:15 CDT
    Universal time: Sat 2013-10-26 19:41:15 UTC
    Timezone: America/Chicago (CDT, -0500)
    NTP enabled: no
    NTP synchronized: yes
    RTC in local TZ: no
    DST active: yes
    Last DST change: DST began at
    Sun 2013-03-10 01:59:59 CST
    Sun 2013-03-10 03:00:00 CDT
    Next DST change: DST ends (the clock jumps one hour backwards) at
    Sun 2013-11-03 01:59:59 CDT
    Sun 2013-11-03 01:00:00 CST
    What's wrong? I've tried syncing ntpd, but that doesn't fix anything.
    It seems to think that local time (7:41 PM) is UTC, placing me in, effectively, UTC-10:00. My clock in the system tray says 2:42 PM.
    I'd like to have my hardware clock set to UTC, and Arch Linux is the only operating system in use on this computer.

    2ManyDogs wrote:
    It does appear that your hardware clock is set to local time, not UTC. What do you get from
    sudo hwclock --debug
    And what is the current local time (the time you see on your wall clock) when you run this command?
    ntpd is only able to sync within a small increment unless you use the -g switch:
    sudo ntpd -gq
    Aha, this was the command I was looking for. Thanks!
    This command usually fixes it, but sometimes the problem comes back. I'll report here with wore details next time it occurs.
    Thank you all for your help.
    (Just remembered to run sudo hwclock -w so my computer's clock gets set to UTC.)
    Last edited by ThePacman (2013-10-27 12:13:11)

  • How to get rid of message in Konsole "System Serial#" looks incorrect or invalid

    I hava a one year old MBP, in real it is some weeks older than this.
    The Display showed a thin yellow line on the left side of the display.
    I took it to the Apple-Store and they, after some discussions about the warranty, took it and repaird it.
    On the next day i went for it to get it out of the store (they told me to fetch it).
    First thing, i checked for the error. Sadly it came up again.
    What did they do? They changed the MLB (Motherboard).
    OK, i do now have a "new" MBP.
    The same error (yellow line) appeared and they took it to repair it again, this time changing the display.
    Three days later they told me to fetch it again.
    Heading for the Store, have a look on the Display..... very good no yellow line. Great!
    BUT! the Display is lightly turned in the case. Grrrr..
    If it is a Laptop for 300 $ ok but not on a system for 2000 $.
    I will bring it back i a few days to "repair" it, again.
    Now to the mentioned Console-Message:
    "Hardware SerialNumber "System Serial#" looks incorrect or invalid"
    After replacing the MLB, the Hardware changed.
    Is it a problem for the Software?
    What can happen, and what restrictions/problems will i have?
    How do i get rid of it?

    When the logic board is replaced, the serial number has to be flashed back into the records - there is a special tool for that and they will need to do that or you will show an incorrect serial number forever and it may result in problems. That part is easy to fix - simply tell them they need to flash/re-register your old serial number.
    As for the other problems: good luck; if they keep replacing/repairing for the same problem more than 3 times, ask (very politely) if one could consider replacing the machine as the repairs are not fixing the problem.

  • Further info needed on the System Time Problem when using Bootcamp

    Hi, my query is an extension on the previously reported problems and fix with the Sytem Time being incorrect when using Bootcamp.
    As respected user 'SideStepSociety' very helpfully pointed out and posted in another thread, the cure for this problem is as follows:-
    In Windows, try this:
    Run > RegEdit


    Find: HKEYLOCALMACHINE > SYSTEM > CurrentControlSet > Control > TimeZoneInformation
    

Add key ( REG_DWORD type ): RealTimeIsUniversal


    Double-click and set value to 1
    However, unless I'm mistaken I have seen somewhere that the key type 'REG_DWORD' is 32-bit based and I am running Windows 7 x64 (64-bit) Bootcamp, therefore do I have to enter the QWORD 64-bit type key i.e. 'REG_QWORD' instead of the DWORD 32-bit type key i.e. 'REG_DWORD', or is it perfectly acceptable and fine to just enter both to cover myself should any of the components revert from 64-bit to-32 bit? ..which I have experienced happening once with Windows 'Gadgets' which normally always runs 64-bit, but once reverted to 32-bit.
    Advice appretiated, thanks.

    Thanks for advice.
    I had gone ahead and entered the DWORD value in the registry just after my post and a couple of week booting between the two OS's, there were no more problems with the time issue between OS X and Bootcamp.
    Shame this most frustrating of little problems where not resolved in a Bootcamp update patch, I had been experiencing this problem for a long, long time not knowing how to fix it and thinking it was my own MacBook Pro that was at fault. I do sympathise now with the possible hundreds or even thousands of Mac-Bootcamp users that are suffering this unbeknown that there's only a special registry fix that has to be manually applied to cure the problem. This is Tacky. I do wonder about Apple sometimes.

  • The system is configured incorrectly- STORAGE_PARAMETER_WRONG_SET

    Hi
    when data was fetching by BW system in r/3 system a background joba has triggered.
    In r/3 that cancelled and giving dump
    STORAGE_PARAMETER_WRONG_SET
    Short dump has not been completely stored (too big).
    Short text:
    The system is configured incorrectly.
    What happened?
    The current program had to be terminated because of an error when installing the R/3 System.
    Regards
    Siva

    > Recently, we remotely installed fresh IDES ECC 6.0 SR2 system on Win 2003 with SQL Server 2005.
    >
    > At the time of installation we got couple of error like
    >
    > Warning: The SQL Server Standerd Edition is not supported for the Productive Operation. Press OK to continue your installation.
    Well - that error is pretty self explanatory. You are using an unsupported database. SAP systems are only supported on Enterprise editions of SQL Server.
    Apparently that system was "manually" installed not using the DVDs provided by SAP.
    > Got this error messages more then 38 times in ST22 code
    >
    > STORAGE_PARAMETER_WRONG_SET
    That is a memory related error which can happen because you're reaching the 2 GB per-process memory limit on 32bit systems.
    I suggest:
    - Reinstall the system with a supported database version
    - use 64bit
    Markus

  • The system time is val seconds older than the queue space time

    We did a time change on our system to future time and getting the above error after we are trying to reboot the application with current time.
    Please help !

    The Tuxedo queueing subsystem access to an accurate system time in order to
    implement message expiration times and other time-related features. If the
    system time is reset to an earlier value, time related queueing features can
    work incorrectly. For this reason,
    Q_CAT:2238 is logged if such a situation is encountered. Timestamps can be
    stored within individual /Q messages as well as in the queuespace
    superblock.
    If the time change into the future was of short duration, the easiest way to
    resolve this problem is simply to wait until the real time reaches the
    previously set future time. Once this happens, the queuespace will once
    again be usable.
    If the queuespace is used on a test system and the data on it is not
    valuable, another option is to recreate the queue space from scratch.
    Another option is to reset the system time back to the previous future time
    in order to use the queuespace.
    If this is a production system and you are a BEA support customer, you can
    file a support case about this situation. It may be possible for support to
    write a utility program to modify the timestamps within the queue to earlier
    values or to give you a version of /Q compiled to accept an environment
    variable that can be used to modify /Q's idea of the system time.
    Ed
    <hunki> wrote in message news:[email protected]..
    We did a time change on our system to future time and getting the above
    error after we are trying to reboot the application with current time.
    Please help !

  • How to print system-time in XML?

    Hi,
       Please help me how to print system-time in XML. Like we use sy-uzeit in ABAP.
    Can we use anything in XML too..
    Thanks & Regards,
    Sai

    hi movilogo
    Please try this.
    Create hidden item P1_DATE
    Create On load process in page 1 and put this code
    begin
    :P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
    end;
    Open your region in Page 1 put this code in Footer area
    *&P1_DATE.*
    Refresh your page.
    you will get the output like this.
    16-SEP-2009 11:09:17
    thanks
    Mark Wyatt

  • How can i get the System Time from the other host

    I want to get the System Time from the other host in the LAN,How can I get the Time using Java.
    Such as I am in WIN 2000 and I have a Unix host in LAN, I want to get unix host System time, How can I do it.

    Open a socket to port 13 and read a string with the time.
    -or-
    Open a socket to port 27 and read 4 bytes that are a network order timestamp
    Assuming that your UNIX machine has those services running, most do

  • How to get the system time in a Swing application ?

    I know how to do it in JavaScript, but not java. Please help me, and also how to get the system time in an Applet. Thanks !!!

    Check this link, I hope it helps
    http://202.71.136.142:8080/globalleafs/Swing/View.jsp?slno=22&tbl=0

  • How do i plot with the operating system time in one plot and show lines between cursors in another using the same XY graph?

    I am having some trouble graphing two plots at once. One plot is to show the current temperature inside a chamber as a function of time. I am trying to pick the current time and temperature each second and plot it with each point being connected by a line. I am able to show a moving, blinking dot each second but I can't figure out how to develop an actual line with these dots. To make matters worse, the blinking dot is back in the year 1903. I understand that it uses seconds elapsed since 1903, and am trying to find out how to graph the current temperature with the system time.
    The second plot is just 5 moveable cursors that are to be connected by a line. I am able to move the cursors and retrieve the position information, but I can't make a line between them.
    I have attached my main .vi, though you may have to pick the graphing part off to have it work for you.
    Attachments:
    Main Module Chamber Testing I_O every 30 sec.vi ‏288 KB

    You're not creating the XY graph data correctly. I've attached an example with a couple of simple XY Graphs. One is using a couple of shift registers to hold the spearate x and y arrays. I think this is what you were trying to do. The other one uses a VI from the shipping examples called XY Chart. It makes an XY Grpah act like a chart. I've also shown the correct way to display current time.Message Edited by Dennis Knutson on 05-12-2005 03:51 PM
    Attachments:
    XY Graph.vi ‏41 KB

  • How to create a type of 'alarm event' based on acquired sensor data and system time?

    Hello all,
    I'm fairly new to LabVIEW and have successfully created a VI that reads voltage data from sensors.  Each sensor outputs 2 voltage values and I treat these values as 2 different DBL values.  I'd like to be able to record each voltage value as a base and then compare the subsequent data readings with that base.  Once the base is determined, I'd like a sort of 'variable' set as "TIME" to be recorded at the moment the base voltage is recorded.
    The alarm should occur (or anything Boolean set to TRUE I guess) once the continuously read voltage remains within certain limits for about 2 hours.  I know I can compare the system time w/ the "TIME" that the voltage base value was recorded.  If the voltage readings escape those limits, I'd like the voltage base value reset and the TIME set to the corresponding system time again.
    I apologize in advance if this I haven't' described my problem well, but if anyone could help me figure out the best way to create this code, I would appreciate it much!
    Thanks!
    Solved!
    Go to Solution.

    ill try to illustrate a couple scenarios:
    keep in mind that i dont necessarily want the voltages in these specific ranges, but just a range of +/- 20 mV ... in an above post i refer to a "base" voltage reading, in this case that would be 200 mV for V1 and 400 mV for V2, just because the voltage has shifted to those values for an extended amount of time each (> 2 seconds)
    Scenario 1
    1:00 pm
    Sensor readings
    Voltage 1: 200 mV
    Voltage 2: 400 mV
    between 1:00 and 3:00 pm:
    Voltage 1 does not deviate from 180-220 mV range
    Voltage 2 does not deviate from 380-420 mV range
    at 3:00pm I want an alert/alarm/Boolean to change to 'true'
    Scenario 2
    1:00 pm
    Sensor readings
    Voltage 1: 200 mV
    Voltage 2: 400 mV
    at 1:45 pm:
    Voltage 1: 2 mV
    Voltage 2: 600 mV
    Since the voltage has shifted out of the range, i want the new base voltage to equal whatever it changed to out of the range, and also the time spent within the new range (2 +/- 20 mV and 600 +/- 20 mV, respectively for V1 and V2) would be reset, so a new 2-hour counter would begin

  • How to get system time and date with PHP

    Dear Mr.Craig,
      Thanx a lot. We are running SRM 5.0 (RAMP - Implementation).
      My initial requirement is to write a server-side script to display server date and time. Could you give more inside on how to achieve it?
    Regards,
    Deva.

    Perhaps that will help.
    [code]
    <html>
    <h1>Access System time and date</h1>
    <?
         // saprfc-class-library     
         require_once("saprfc.php");
         $sap = new saprfc(array(
       "logindata"=>array(
       "ASHOST"=>"localhost"          // application server
       ,"SYSNR"=>"00"                    // system number
          ,"CLIENT"=>"000"               // client
          ,"USER"=>"bcuser"               // user
          ,"PASSWD"=>"minisap"          // password
         ,"show_errors"=>false               // let class printout errors
         ,"debug"=>false)) ;                     // detailed debugging information
         $result=$sap->callFunction("MSS_GET_SY_DATE_TIME",
            array(     array("EXPORT","SAPTIME",array()),
               array("EXPORT","SAPDATE",array())));
         if ($sap->getStatus() == SAPRFC_OK) {
        echo "Time: ".$result["SAPTIME"];
        echo "<br>Date: ".$result["SAPDATE"];
        echo "<br>or<br>";
        echo "Server is showing: "
             .substr($result["SAPDATE"], 0, 4)
             ."-".substr($result["SAPDATE"], 4, 2)
             ."-".substr($result["SAPDATE"], 6, 2)
             ." and "
             .substr($result["SAPTIME"], 0, 2)
             .":".substr($result["SAPTIME"], 2, 2)
             .":".substr($result["SAPTIME"], 4, 2);
         } else {
              $sap->printStatus();
         $sap->logoff();
    ?>
    [/code]

Maybe you are looking for

  • How can i adopt the iPhone App-Structure to iTunes for Sync?

    Hello Community! I usually buy apps or games directly over the iPhone-App-Store and i also manage the folder structure directly on the iPhone Screen. Yesterday i bought a new App via the iTunes Store on my MacBook (don't know why, i thought it would

  • [SOLVED] ASCII desktop list

    Hello. Is there any program/script that will let me pick from list which desktop environment/window manager I will start without need to edit ~/.xinitrc or installing graphical login manager. Thx. Last edited by verb0ss (2012-06-09 22:26:24)

  • Unable to find a web browser installed on your system

    I've used Robohelp previously, but not for some time, now I'm getting "Unable to find a web browser installed on your system" error when trying to generate a layout? How do I restablish my browser? Thanks!

  • Design view not the same as live view

    My design view is totally different the IE view or live view in cs4, I read a thread that you have to basically live with it? I hope this is not true, can anybody confirm? Thx Brad

  • Enhenced Interface Determination

    Hello all, I want to use the enhenced Interface Determination functionnality but I don't find related Objects in SAP_BASIS software components as specified in standard documentation : Missing object : The receiver interface of the bulk message is alw