[SOLVED] Incorrect time displayed in my system

Hey Archers,
I have trouble correct time being displayed in my system.
My BIOS time is:
May 18 2012 08:39:21 PM IST
Date command displays
Sat May 19 02:09:59 IST 2012
Clearly the time displayed by date command is localtime+05:30 (Asia/Kolkata), when I expect it to be just localtime.
How do I correct this?
I dont dual boot and have just Arch installed on my machine.
And my /etc/rc.conf has this:
HARDWARECLOCK="UTC"
TIMEZONE="Asia/Kolkata"
Please correct if my understanding is wrong, but is this how it works?
When I say HARDWARECLOCK=UTC and TIMEZONE=''Asia/Kolkata",
It assumes, hardwareclock, time displayed by BIOS, is infact UTC, and, since the user is interested in timezone, +0530, it adds 0530 to hardware clock.
Thanks,
Nachiket.
Last edited by Nachiket (2012-05-19 07:22:47)

Hey Tectu,
The wiki article on Time was indeed splendid. It had all the information I needed. Thank you.
Trilby,
You were right, my hardware clock was on local time.
So this is what I did to set it correct.
1. Set the HARDWARECLOCK to "localtime" in /etc/rc.conf
HARDWARECLOCK="localtime"
TIMEZONE="Asia/Kolkata"
2. Reboot the system
3. Set the systemclock to UTC by doing a -0530 (minus 05 hours 30 minutes)
# date `date -d "-05 hours -30 mins" +%m%d%H%M%Y`
4. Copy the system clock value to hardware clock
# hwclock --systohc
5. Edit the /etc/rc.conf to set HARDWARECLOCK back to UTC
HARDWARECLOCK="UTC"
TIMEZONE="Asia/Kolkata"
6. Reboot the system.
And yes, now my system clock displays correct time
Just setting HARDWARECLOCK to "localtime" also worked. But since I the beginners guide recomments "UTC" I did all this.
Marking the thread as SOLVED.
Regards,
Nachiket.
Last edited by Nachiket (2012-05-19 07:23:33)

Similar Messages

  • [SOLVED] UTC Time Displaying Localtime

    I am trying to get Conky to display the correct UTC time on my desktop, but the localtime is being displayed instead. In light of this issue, I concluded that the hardware clock must be set to use localtime, rather than UTC, and or that the system clock is not syncing correctly with the hardware clock on boot up.
    So, I tried issuing the command
    timedatectl set-local-rtc 0
    to set the system time to use UTC as indicated in this ArchWiki page. However, even after rebooting, Conky still displays the localtime rather than the UTC time.
    Issuing the command
    timedatectl status
    results in the output
    Local time: Tue 2013-07-16 07:27:07 EDT
    Universal time: Tue 2013-07-16 11:27:07 UTC
    RTC time: Tue 2013-07-16 11:27:07
    Timezone: America/New_York (EDT, -0400)
    NTP enabled: n/a
    NTP synchronized: no
    RTC in local TZ: no
    DST active: yes
    Last DST change: DST began at
    Sun 2013-03-10 01:59:59 EST
    Sun 2013-03-10 03:00:00 EDT
    Next DST change: DST ends (the clock jumps one hour backwards) at
    Sun 2013-11-03 01:59:59 EDT
    Sun 2013-11-03 01:00:00 EST
    After having tried the above command without success, I then entered into the system BIOS on boot, and inspected the hardware clock time, which is correctly set to the UTC time.
    So, after booting again into Arch Linux, I tried using the
    hwclock
    command to troubleshoot the problem.
    Issuing the command
    hwclock --debug
    yields
    hwclock from util-linux 2.23.1
    Using /dev interface to clock.
    Last drift adjustment done at 1373971186 seconds after 1969
    Last calibration done at 1373971186 seconds after 1969
    Hardware clock is on UTC time
    Assuming hardware clock is kept in UTC time.
    Waiting for clock tick...
    ...got clock tick
    Time read from Hardware Clock: 2013/07/16 11:19:10
    Hw clock time : 2013/07/16 11:19:10 = 1373973550 seconds since 1969
    Tue 16 Jul 2013 07:19:10 AM EDT -0.985669 seconds
    According to the output above, the
    Hardware clock is on UTC time
    , so I am not sure why the system clock is not syncing properly with the hardware clock on boot up.
    Issuing the command
    hwclock -r
    yields
    Tue 16 Jul 2013 07:37:51 AM EDT -0.797938 seconds
    which displays localtime, instead of UTC.
    In addition, I find it somewhat confusing that
    hwclock --localtime
    yields
    Tue 16 Jul 2013 11:39:23 AM EDT -0.079090 seconds
    which appears to be the UTC time, and issuing
    hwclock --utc
    yields
    Tue 16 Jul 2013 07:40:17 AM EDT -0.485343 seconds
    which appears to be the localtime.
    I also tried using the command
    hwclock --systohc
    according to this question on serverfault.com, with no success.
    The output of the
    date
    command is
    Tue Jul 16 07:46:03 EDT 2013
    , which appears to be the localtime, rather than the UTC time.
    I noted that in the ouput of
    timedatectl status
    it says
    NTP enabled: n/a
    NTP synchronized: no
    which I believe may be contributing to the problem, but I am somewhat unclear as to whether or not NTP is necessary for the system time to be correctly synced with the hardware clock and the UTC time.
    Also, I am using the Conky Metro Clock Conky configuration for my .conkyrc file.
    Any help would be greatly appreciated.
    Thank you.
    EDIT:
    For clarification, I did not actually actual want to display the UTC time with Conky, but rather the localtime. I accidentally concluded that I wanted to display the UTC time because my hardware clock was synced to my localtime, rather than the actual UTC time. Therefore, this caused the UTC time to be synced with the localtime, and furthermore, the localtime to be 4 hours behind the correct localtime in my timezone (UTC-4hrs).
    Last edited by kevin.gurney (2013-07-16 22:52:15)

    kevin.gurney wrote:2ManyDogs, I don't actually want to display the UTC time. The reason why I originally wanted to display the UTC time was because it appeared to be the correct time because it was actually set to the localtime in my timezone. Therefore, the localtime that was being displayed on my system was actually 4 hours behind the correct time in my timezone relative to this UTC time since my timezone is UTC-4hrs. I apologize for the misunderstanding, although I do understand the difference between UTC and my localtime, it it simply a matter of the UTC time being incorrect on my system, and, therefore, the localtime, as well.
    Ah. We could have helped you much more quickly if we understood what the real problem was. Oh well, at least you have it the way you want it now.
    This is what confused me:
    kevin.gurney wrote:I am trying to get Conky to display the correct UTC time on my desktop
    With your last explanation, I understand what you were actually asking for.
    Last edited by 2ManyDogs (2013-07-16 22:36:26)

  • Incorrect Time Displayed - Help

    G'dday All,
    I am a newbie in J2ME and learning to "crawl" through this area. Now one of the issues I am having is that if I execute the following command:
    Calendar c = Calendar.getInstance();
    String timeString = c.get(Calendar.HOUR) + ":" + c.get(Calendar.MINUTE) + ":" + c.get(Calendar.SECOND);
    System.out.println("The TIME is : " + timeString); //display on console
    For instance, if the current actual time is 10.04.02 pm then the time displayed on the Sun J2ME emulator phone is 10.4.2 . My question is that why does J2ME drop the 0s from the MINUTE and SECOND units ? Is there a way around it so this would be displayed correctly? Further, how does J2ME differentiate between 10.04 and 10.40 since in J2ME both will be 10.4 ?
    I will appreciate any ideas as how to go about fixing this problem.
    Thanks
    V

    The Calendar.get() method returns an int. So the value 04 is actually 4. Integer.toString() has no idea it should use two digits so it displays this as "4".
    You will need to get the minutes and seconds into a temporary variable, and if they are smaller than 10 add the additional "0" yourself:
    int minutes = c.get(Calendar.MINUTE);
    if (minutes < 10) {
      timeString = timeString + "0";
    timeString = timeString + minutes;
    // ...shmoove

  • Incorrect time displayed in Lost mode email notifications from iCloud

    Lost mode email notifications from iCloud displays California time, even though my iCloud setting is in a different time zone. Can this be changed? How?

    Try going to Applications/Utilities/Keychain Access and delete the iCloud password.
    Try running Keychain First Aid.
    Keychain Reset
    Keychain Issues - Resolve  see post by Kappy

  • Incorrect time displayed since iOS4.1 update

    Title says it all really. I have it set to set the time automatically, and it is currently displaying 2 hours fast. I can correct it by manually setting the time, but this never happened with 4.0.2

    skippy1440 wrote:
    Title says it all really. I have it set to set the time automatically, and it is currently displaying 2 hours fast. I can correct it by manually setting the time, but this never happened with 4.0.2
    Turn off automatic time set, verify that your time zone is correct, and turn it back on.

  • [SOLVED]Incorrect time - 1h+

    Hello,
    I've followed the wiki's page: https://wiki.archlinux.org/index.php/time
    timedatectl status | grep local
    RTC in local TZ: no
    I've tried this, but didn't help:
    timedatectl set-local-rtc false
    timedatectl status
    Local time: Sat 2014-02-22 12:17:18 CET
    Universal time: Sat 2014-02-22 11:17:18 UTC
    Timezone: Europe/Copenhagen (CET, +0100)
    NTP enabled: n/a
    NTP synchronized: no
    RTC in local TZ: no
    DST active: no
    Last DST change: DST ended at
    Sun 2013-10-27 02:59:59 CEST
    Sun 2013-10-27 02:00:00 CET
    Next DST change: DST begins (the clock jumps one hour forward) at
    Sun 2014-03-30 01:59:59 CET
    Sun 2014-03-30 03:00:00 CEST
    UTC time is correct, but my arch uses localtime (shown in tint2). How to fix this? I've searched this forum and Google, but nothing solved the problem.
    Last edited by decas (2014-02-22 18:57:20)

    Either adjust it manually (e.g. in the BIOS), or use something like NTP to sync your software clock, then use hwclock to save the changes to the hardware clock (I believe that it saves it as UTC by default, but you might want to check that).

  • Incorrect time displayed on iPad

    The clock on my iPad has always been a few minutes fast but I have noticed that it is getting progressively worse. It now runs 10 minutes fast and I can't figure out how to manually set the time. Any suggestions?

    Set the date and time automatically on your iPad:
    Choose General > Date & Time, then turn Set Automatically to on.

  • Why is my iPhone displaying incorrect time?

    Image should explain all.
    The time at the top is 8 hours behind. I can't correct it because when I go into Time, it's correct!
    Many thanks

    Hey there JonnyAustin,
    It looks like your phone is showing an incorrect time but it is set correctly in Settings. I would start with quitting all the running apps on the device:
    iOS: Force an app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the device and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    If the issue persits, I would next use the troubleshooting in the following article for additional assistance:
    iOS: Troubleshooting issues with date and time - Apple Support
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Incorrect time stamps

    The time stamps on my saved files are not correct. They give the time in the time zone where I was previously and where I last restarted the computer. Is this the expected behaviour? The time displayed at top right of the menu bar IS correct - it changed as expected when I changed the time zone in system preferences - but all the time stamps on files modified, created, and opened since changing zone are incorrect.
    I'm guessing (hoping) that when I restart all will be well, but in the meantime would like to know if this behaviour is expected.

    Thanks jimocallaghan. I'm (literally) half a world away from my install disk right now, but could try your suggestion on returning home in a few weeks time.
    In the meantime I've restarted and, lo, the incorrect timestamps which were being generated after my zone change are now magically corrected. i.e not only are new time stamps being applied correctly but the files which were wrongly stamped now carry the correct stamps.
    Has anyone else found that, after a time zone change, a restart is required to ensure that timestamps are applied correctly ?

  • "The movie contains an incorrect time value" error - saving a trimmed video

    I am attempting to trim a video shot on my Samsung CL65. The video was shot in High Quality HD 1280 x 720. I open the video in QuickTime and then use the Trim command to remove the last part of the video and then close it to Save it. When I save it I get the following error: "The document SAM_0306.MP4 could not be saved as "SAM_0306". The movie contains an incorrect time value." I think this has to do with an encoding error in the original file or in the trimmed file but I have no idea how to get around it.
    Any ideas?

    This info probably won't help with your problem, but it's information for others who get this error.
    It's probably the software that made the MP4. ffmpegX, for example, and the mencoder program inside it, do this with every H264 encoding when the video is longer than 1 hour. Time codes are correct up to 1 hour, then the seconds value gets wacky (3600 is added to it). Quicktime won't save a movie with a time code like 1:20:3623.120 (although it will correctly display 1:20:23 in the player).
    Apple used to offer quicktime scripts that would allow you to see what the time code in a stream really looked like. Applescript appears to have officially and quietly gone missing, though, and those scripts are no longer available online as far as I can tell. There were some really handy other scripts that would allow you to view all sorts of movie properties and manipulate tracks (great for syncing poorly synced sound, for example), but time code problems like the above would invariably mean the movie couldn't be saved.

  • Airport Blank, Time displayed is wrong, spinning wheel of death›

    Hi Guys
    This is the second time this has happened in the last 3 days.
    My airport icon along the top toolbar is blank, even though clearly i am on the internet right now and it's working, and also the time is 50mins out. I went into System Preferences to check if i had the wrong time zone, but it's on the correct one (Wellington, New Zealand) and in System Preferences it has the correct time, yet the time displayed on the tool bar is wrong.
    The other day when this happened, i shut my macbook pro (Leopard 10.5.8), and opened again, and it restarted itself, took 10 minutes on the white page with apple logo and spinning cog, and then went to a plain blue screen. I forced it to shut down and started it up and again and this happened again. I couldn't find anything on these forums to help me (on my boyfriends laptop) and went and had a look at my manual, and started up my laptop in safemode, went into my system preferences, went to startup disk and selected my local disk and then restarted my laptop and it has been working fine for the 2 days since then.
    About ten minutes ago, i opened up my laptop from sleep and the airport icon is blank and the time is out again, also when i hover over that part of the toolbar i get the pinwheel, but when i hover over the toolbar towards the menus it's fine.
    I just opened system preferences to have a look at the start up disk thing again and it's frozen with pinwheel there too.
    Help Help Help!
    I don't want to shut my laptop off right now because i know i will get blue screen when i try to turn it on again and i won't get any of your replies :P

    also just noticed the "wrong time" is actually frozen, it's just frozen on 7:55pm
    ta

  • How to turn off lumia520 time display on the scree...

    How do i turn it off? I just want to have the date display on the block screen. I have a watch so i dont want to look at the time on the phone. Also, how do i turn the lady's voice off when i am receiving a call? She keeps saying: call from ####.

    As far as I know the time display is built into the lockscreen although it could be alternative lockscreen allow you to modify how it shows.
    To turn off voice;
    Settings > ease of access> Narrator > OFF
    Although I am not a 100% sure on this..
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • Mail delivery problems and incorrect time stamps

    I'm running Server 10.4.9 and along with hosting two webpages I am hosting email for one of the domains. Whenever a message is received by an account hosted by my server, the time listed for receiving the email is incorrect. It varies from 1 to 4 hours fast or slow depending on the source of the email. It happens with both incoming and outgoing mail. If a message is sent from one account to another on my server, the time stamp is correct.
    In addition to the incorrect time, I have noticed messages directed to one account being delivered to another. For example, in my own mailbox I recieve messages that were intented to go to another user mailbox on my server. I don't know if that is related to the same problem or if it is a spam issue but I figure any bit of information will be helpful.
    And finally, I do not believe all mail is reaching the intended mailbox. I have junkmail and notjunkmail accounts enabled for spam and if I redirect 10 emails usually only 5 at the most will make it. I get no return errors when redirecting (ex: undeliverable)
    I have checked the obvious time and date panels in OS X including the server admin and everything matches. The timezone is also correct. I type date into the terminal and that comes up correct as well. This isn't my first time configuring a server.... I've hosted mail servers with 10.2 and 10.3 in the past with no problems but this is my first time using 10.4. I'm pretty comfortable navigating through the server, but I have limited experience in terminal. (Just for FYI) Usually with enough time I can figure almost anything out, but I've run out of ideas here. Any help would be greatly appreciated. Thanks...

    I'm running Server 10.4.9 and along with hosting two
    webpages I am hosting email for one of the domains.
    Whenever a message is received by an account hosted
    by my server, the time listed for receiving the
    email is incorrect. It varies from 1 to 4 hours
    fast or slow depending on the source of the email.
    Where are you looking at the timestamp? On the message headers? Are you taking into account any timezone corrections on same headers? E.g. following message sent from Apple HQ to UK...
    Received: from uk2mxserver3-10.uk2.net ... Sun, 15 Apr 2007 10:24:34 +0100 (BST)
    Received: from bz3.apple.com ... Sun, 15 Apr 2007 10:24:31 +0100
    Received: from acutil03.apple.com ... Sun, 15 Apr 2007 02:24:22 -0700 (PDT)
    Otherwise you will need to post examples.
    In addition to the incorrect time, I have noticed
    messages directed to one account being delivered to
    another. For example, in my own mailbox I recieve
    messages that were intented to go to another user
    mailbox on my server. I don't know if that is
    related to the same problem or if it is a spam issue
    but I figure any bit of information will be helpful.
    And finally, I do not believe all mail is reaching
    the intended mailbox. I have junkmail and
    notjunkmail accounts enabled for spam and if I
    redirect 10 emails usually only 5 at the most will
    make it. I get no return errors when redirecting
    (ex: undeliverable)
    What does the mail.log show for these messages? You should be able to track them moving through the system.
    -david

  • How can I add the date at the top of the screen along with the day and time display?

    Hello,
    How can I add the date at the top of the screen along with the day and time display?
    Thanks so much!

    Open System Preferences>Date & Time:
    Ciao.

  • Agent Real Time Displays 1 hour ahead

    Greetings all,
    Agent Real time display are showing 1 ahead hour of clock system.
    Anyone have a suggestion if this is a bug or configuration issue ??
    I have attached a screenshot to simplify
    UCCX: 7.0

    Hello Leonardo,
    Could you please check if the time display by the Real Time Reports is the same time of the server??
    Also I would like to know if the server and the agents are configure to use the same time zone??

Maybe you are looking for