How to set correct time

My time stardard set to HARDWARECLOCK="UTC" and TIMEZONE="Asia/Shanghai"  in /etc/rc.conf,and code:hwclock --set --date;date;hwclock --systohc/--hctosys,etc. but  can not get the correct time when restart mechine second day.
Output of my mechine:
$date
Thu Jan 14 12:17:22 CST 2010
$hwclock --show
Thu 14 Jan 2010 12:19:12 PM CST  -0.588858 seconds
How can I get correct time?Thanks a lot.

Primoz wrote:It's not that hard to set and once you set it, you never need to worry again (, well only if you're reinstalling...)
or when booting windows on your other partition. somehow windows changes my time when I boot it. I read about this problem somewhere but forgot the elegant fix for this (I don't really care since I rarely boot windows) so I use ntp to set my time again.

Similar Messages

  • UC320: how to set (correct) time and date, upload own AA messages, get caller ID, telnet?

    Hello there,
    Just trying out the UC320 I got borrowed from Cisco AT for testing with firmware 2.1.2 (1) localized for Austria.
    The device is connected to the cable modem of my ISP (Kabelsignal) utilizing two FXO ports, getting an IP address from my DHCP being connected to a WS-C2960G-24TD (LAN 1@UC320 connected to Gi0/18@C2960G port macro Cisco Switch enabled).
    Now I would like to try/see the following features:
    - a correct time and date: huh? hwo/where???
    No option to set this right??? No NTP option??? Am I just blind or too stupid to find that option/s?
    - upload own messages for the AA: ok, there are german messages but someone might have a little bit personalized ones - maybe telling callers the company name before asking them to dial the extension if they know it. Making custom messages is not the problem - but how to upload and in which sound/data format?
    - caller ID: my ISP told me that he transfers the caller ID correctly to analoge end devices if caller ID is available and not suppressed. All I can see when a call comes in is which FXO Port is being used by that call. So callback entries on the SPA phone is senseless. Any advise?
    - CLI: You can telnet the device - but which credentials to use to successfully logon? The pre-assigned credentials form Cisco AT are not accepted for logon.
    BTW @Cisco guys: I am also voting for support for the older SPAs (e.g. 942)

    Hi Claus,
    Thanks for giving the UC320W a spin and glad you found the support community!  Let met see if I can help answer your questions....
    Time/Date & NTP -- The UC320W is preconfigured with Cisco's Small Business NTP server.  The preferred method for correct time you will need the UC320W WAN to be connected with Internet access.   If there is no WAN connectivity there is a feature in the 2.1.x firmware where you can set the time on a SPA phone GUI and it will then update the system time.  Alternatively, if you have a LAN side NTP server that is on the same subnet as your Data VLAN subnet, you can use the NTP.pmf file found here:  https://supportforums.cisco.com/docs/DOC-16301
    Upload custom Music on Hold and Auto Attendant prompt files.  We are currently in beta of a new Cloud service.  To participate in the Beta, please send an e-mail to [email protected] requesting MoH/AA Custom files Cloud Beta participation.
    Caller ID on FXO:  Make sure that you have run the impedance matching tool on each of your FXO ports.  For additional information on running the Impedance Matching tool and Caller ID troubleshooting, please see the UC320W Troubleshooting Guide.
    CLI access -- This is for Cisco Support personnel only for low level debugging.  This is not a IOS based device and there is no command line access for provisioning.
    Cheers,
    Chris

  • How to set current time ?

    Hi,
    I am in eastern time zone and my Apex sysdate shows EST. However the date picker shows four hours ahead (GMT) . The reason I found is the current_time stamp set to 00:00 instead of -04:00. (DBTIMEZONE) . Our DBA does not know much about APEX . When I made qurries about time zone and time stamp at SQL Commonds, the results are as follow:
    select SESSIONTIMEZONE from dual;
    SESSIONTIMEZONE
    +00:00
    select current_timestamp,systimestamp, localtimestamp from dual
    CURRENT_TIMESTAMP SYSTIMESTAMP LOCALTIMESTAMP
    10-AUG-07 01.07.40.740216 PM +00:00 10-AUG-07 09.07.40.740199 AM -04:00 10-AUG-07 01.07.40.740216 PM
    when I tried the following statement,
    alter session set time_zone= '-4:00';
    I got
    Statement processed.
    but no thing has been changed.
    The question is how to set the time so that in the date picker with time It will show me the correct default time. Right now it is showing four hours ahead.
    Thanks for the help.

    Hi Adnan,
    Convert is from date to string :
    String bldate=item.getBilling_Date();
                                                      String byy=bldate.substring(0,4);
                                                      String bmm=bldate.substring(4,6);
                                                      String bdd=bldate.substring(6,8);
                                                      String bdate=byy+"-"+bmm+"-"+bdd;                         
                                                      java.sql.Date bildate=java.sql.Date.valueOf(bdate);
    elem1.setBilling_Date(bildate);
    Regards
    Khushboo

  • How to set up time capsule with BT Infinity

    how to set up time capsule with BT Infinity

    The easiest and sure way is to use bridge on the TC as the method of connection. The TC then becomes a device in your network and gets its IP from the main router that I presume BT supply.
    Method is,
    1. Plug the TC WAN port into the BT supplied modem by ethernet.
    2. Plug the computer you are using for the setup into the TC by ethernet.
    3. Run the airport utility .. go to internet tab on the top menu..
    In the bottom option, Connection Sharing choose off (bridged mode)
    4. Go to the wireless page and setup wireless connection as you like it.. using whichever band you want. And make sure security is set to the highest setting, wpa2 personal. Put in a decent wireless passkey.
    5. Press the update and fix whatever else the TC will show as needing fixing.. usually security stuff.
    6. You can then disconnect the ethernet and connect by wireless if you want. Any port on the TC will now be a LAN port, including WAN.
    This is assuming BT supply a wireless router with built in vdsl/other type of modem. If so you normally will not be able to bridge the modem, unless BT are using pppoe authentication which they haven't in the past.
    If you really need to use the TC as a router then you will need to work out an alternative method. You can double NAT by placing the TC in the DMZ of the BT router if that is an option. It is not without issues in general.

  • After shirring Blu-ray does not want to read disk. If it's setting, how to setting correctly. This happened after update.  Final Cut Pro X 10.1.1

    After shirring Blu-ray does not want to read disk. If it's setting, how to setting correctly.
    This happened after update.
    Final Cut Pro X 10.1.1 & Mac Pro 10.9.2

    Just refuse to open.
    Player show me first page (background) & refuse to open.
    Thanks. Greg.

  • How to set delay time in tooltiptext

    Hai,
    I'm developing desktop application by using SWINGs in that app there in some text fields for that i have written mouseEntered method.
    in that method i used tooltiptext. It working properly. I need it to display message upto mouseout from text field.
    so any one could please help me how to set delay time for the tooltiptext.

    Read the API for avax.swing.ToolTipManager. Also, you don't need to use a MouseListener, just call setToolTipText or override getToolTipText.
    db

  • How to set default time for appointment

    When I had snow leopard, the default time for length of an appointment was one hour.  I upgraded to Lion and now the default time is many hours.  Can't seem to find the area to change the default.  Keith

    Hello User,
    Check this:-
    Sasi Nagireddy: How to Set Default Time Zone for all Users in OBIEE?
    Thanks,
    Sasi Nagireddy..

  • How to set expiry time for cached Subjects of authenticated proxy service.

    How to set expiry time for cached Subjects of authenticated proxy service in message level authentication.
    Because of this, password change does not effect immediatly in proxy invocation.
    I'm using Weblogic 10.3 and OSB3.0

    Hi,
    You can activate Time-Dependent Publishing Service on your XML form and once the Lifetime of Documents is over then the document is not visible to users.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c1/c87d3cf8ff3934e10000000a11405a/frameset.htm
    It is only invisible but not deleted!
    So to delete all expired XML Forms you should run Scheduler Tasks for Time-Dependent Publishing:
    <b>TimeBasePublishingUnpublish</b>
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3a/bc37b5789dee4eaa8005bff84f14cf/frameset.htm
    You can also create your own Scheduler Task which deletes/archieves all expired XML Forms.
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • How to set snooze time

    Hi ,
    Please let us know how to set snooze time to 5 mintues in Iphone5. At present it is having snooze interval of 10 minutues.
    We are able to see Snooze off / on but i need to reduce snooze time from 10 minutes to 5 minutes.
    Appreciate your valuable inputs.
    Thanks

    It says in the User guide about the snooze:
    "Don't want to get up just yet? When an alarm sounds, you can snooze the alarm. This pauses the alarm for a predefined length of time.
    When the alarm sounds, select snooze."
    My question is how can I do the predefining? It is now 10 minutes and I would like to make it shorter.
    Another question was, if I can define the alarm volume separately from the other sounds of the phone? How can I set the phone mute for sleeping time, and still use the alarm to wake upp?

  • Setting Correct Time in Oracle 8i Enterprise Edition

    If I run a SQL command Select sysdate from dual, it shows the date correctly, but the time is one hour ahead. How can I correct this?
    Regards,
    Jim Rodenberger
    [email protected]

    Jim,
    I'm not sure how to change the time permanently. I don't know if you're in the wrong time zone or what, but I know how to display it correctly:
    First, set your nls_date_format to show the hour, etc.(you may set this to permanent instead of just for the session:
    SQL>ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
    SQL>SELECT NEW_TIME(SYSDATE, 'CST', 'CDT')
    1> FROM DUAL;
    The new_time() function accepts and requires 3 parameters. The first being a date and time, the second being the time zone the first parameter belongs in, and the last parameter being the time zone you would like to convert to. Each time zone is abbreviated in the following way: XST or XDT, where S or D stands for standard or daylight saving time, and where X stands for the first letter of the time zone (such as Atlantic, Bering, Central, Eastern, Hawaii, Mountain, Newfoundland, Pacific, or Yukon. There are two exceptions: Greenwich mean time is indicated by GMT, while Newfoundland standard time does not use daylight saving. This is in the Oracle 8i Certified Professional DBA Certification Exam Guide page 48.
    Hope this helps,
    Rob
    If I run a SQL command Select sysdate from dual, it shows the date correctly, but the time is one hour ahead. How can I correct this?
    Regards,
    Jim Rodenberger
    [email protected]

  • How to set the time limit to execute shell script

    I am using Runtime exec() method to execute a shell script
    if the script hangs for long time infinitely then how to get the control
    return to the program.
    Thanks in advance

    rmi_rajkumar wrote:
    let me explain with an example
    script name is test.sh
    Runtime.exec("test.sh") this will start a new process
    if (proc.waitFor() == 0) {
    try {
    InputStreamReader isr = new InputStreamReader(proc.getInputStream());
    BufferedReader br = new BufferedReader(isr);
    String line;
    while ((line = br.readLine()) != null) {
    outputBuf.append(line).append(ConfigOptions.getLineModeStr());
    } catch (IOException ioe) {
    if test.sh did not exit and hangs with no response
    in this case proc.waitFor() will not execute try catch the control will remain if statement
    my question is insteadof waiting indefinitely need to set a time out say 1 hour and kill the process that executed the scriptYou really need to read the article in the link given by another poster. Your code will not work correctly because you are waiting for the process to end before reading the stream and the processes may never end because you are not reading the stream until after it ends (you need to use muli-threading as explained in the article). If the process really did hange you could probably use destroy(); but, for now, the real problem is your code.

  • How to set up time capsule with router

    I have a router N 300 and would like to buy time capsule but I did not find any information how to set up bouth devises. Thanks

    You can always bridge the Time Capsule.. it is easy. Once bridged the time capsule will no longer route. All routing is then handled by the original router.. N300 (which could be belkin or netgear and maybe other people call then N300). It will still work as a wireless access point.. unless you turn it off, a switch with WAN now allocated to LAN, and a network drive.
    Just look up bridge.
    But there are other ways to do things. You could replace the N300, unless it is a modem.. in which case you can bridge that and use pppoe client on the TC (if you ISP does pppoe).

  • How to set system time from Terminal while booted from 10.6.3 server install disk?

    I'm installing from a 10.6.3 server install disc onto a Mac Mini.  However, the battery on this Mac Mini is pretty much dead, forcing the system time back to 1/1/2001.  Through some research, this has created a problem in that I cannot move beyond the Welcome screen during setup of OS X server.  It looks like the binary has issues with the system time being older. 
    But I'm stuck in that I don't know how to adjust the system time from the Terminal Utility on the boot CD.  Can anyone help? 

    Hey, i just run in to something similar, tonight while trying to fix a computer.
    The user set the time and date on his computer to 1998 and computer locked everything including time and date in system preferences, and his user account basicly making him from administrator to guest. he could not almost any program properly that required administrator privilages.
    to fix this we used this comand in terminal " sudo date 201703162014 "    todays time and date
    20:17 03/16 2014
    we tryed everything and this fixed in 2 seconds
    ps: when you type sudo in terminal it whil give you a warning the improper use of this command is bad.... click continue.otherwhise you will not be able to execute the command.
    thanks again for this post and have a great day

  • How to set a time zone in Agentry.ini

    Hi All,
    I am working on Syclo - MRS integration. We assign a service order in MRS which is in (UTC+03:00) Kuwait, Riyadh .
    When the Syclo client downloads the service order it is in a different time zone and it displays the time according to their time zone.
    Which creates a mismatch in the assignments.
    I have modified the time zone in Agentry.ini to pick the time (UTC+03:00) Kuwait, Riyadh. but this is not working.
    Can you please check the Agentry.ini or suggest how to set this.
    [Configuration]
    developmentServer=False
    [TimeZoneAlias]
    ABST=(UTC+03:00) Kuwait, Riyadh   
    [HTTPXML-2]
    authenticationCertificateStore=MY
    authenticationCertificateStorePassword=
    authenticationCertificateStorePasswordEncoded=false
    autoDequote=true
    baseURL=http://localhost:8282
    basicAuthenticationPassword=
    basicAuthenticationPasswordEncoded=false
    basicAuthenticationUserID=
    constantsFile=httpxml_sd.ini
    enableAuthentication=false
    enablePreviousUserAuthentication=false
    httpConnectTimeout=60
    httpReceiveTimeout=300
    httpResolveTimeout=60
    httpSendTimeout=300
    listenOn=8282
    name=HTTP-XML Back End
    timeZoneName=(UTC+03:00) Kuwait, Riyadh
    timeout=300
    useSSL=false
    xmlAllowXSLTScript=true
    xmlNamespaces=
    xmlResolveExternals=true
    xmlValidateOnParse=true
    [Java-1]
    classPath=./ini4j.jar;./sapjco3.jar;./Java/Agentry-v5.jar;./Java;./Java/SAPCRMSM-4.1.0.0.jar;./Java/SAPCRMSM_CSS.jar
    constantsFile=
    deleteSource=True
    enableAuthentication=True
    enablePreviousUserAuthentication=True
    initialHeapSize=256
    maxHeapSize=512
    name=Java Back End
    timeZoneName=(UTC+03:00) Kuwait, Riyadh
    nonStandardJavaOptions=
    outputDirectory=.
    performCompile=False
    printBusinessLogicStackTrace=False
    printStackTrace=False
    reduceOSSignalUse=True
    scriptsPath=
    serverClass=com/syclo/sap/crm/Server
    sourceDirectory=.
    [System Connections]
    1=ag3javabe.dll
    2=ag3httpxmlbe.dll
    Thanks
    Neha

    Hi Neha,
    The [TimeZoneAlias] section should have all the mobile device time zone in it. The spelling has to be exactly what is seen on the mobile device. The Mobile Device timezone transmits to the Agentry Server , it maps based on what the server understands, then transmit back to the Backend.
    Eg:
    [TimeZoneAlias]
    Australian Eastern Standard Time=(UTC+10:00) Canberra, Melbourne, Sydney
    India Standard Time = (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi"
    Note: Agentry server while adjusting the timezone gets the list of timezones from Windows registry. It was found that some of the timezone settings may not be recognized by the Windows OS in the server. Please verify the same.
    Modify your Agentry.ini to include the exact spelling of your mobile device time zone alias plus the corresponding equivalent as understood by the Agentry Server. I am also attaching the official KBA note tied to Time Zone Alias.
    http://wiki.scn.sap.com/wiki/display/SAPMOB/Set+Up+Time+Zone+Alias+in+Agentry.ini+Configuration+File
    https://support.wdf.sap.corp/sap/support/notes/1813025
    Additional discussion (Thread): Syclo - Client Time Zone error message
    Thanks
    Resmi

  • How to set the time on a WRT160N

    On the status page of the admin console, the current time is listed as 'Not Available'. I've looked through the web admin pages but cannot find the place to set the current time.
    How do I set the time on a WRT160N?

    Under the setup tab...You can select the Time Zone...Select the time zone for your location. If your location experiences daylight savings, leave the checkmark in the box next to "Automatically adjust clock for daylight saving changes" and click on save settings.

Maybe you are looking for

  • Airport Express extends 5 Ghz and 2.4 Ghz or just one at a time?

    I recently switched my dual band Time Capsule to use different names for the 5 Ghz and 2.4 Ghz networks. Will the Airport Express extend both or just one at a time, if so, which one will it extend? I have two Airport Express modules, bought a long ti

  • Mobile sync "Server is shutting down"

    Ever since the upgrade to Yosemite and Server 4.0, my mobile sync is not working properly. After three months, I have a backlog of accounts on multiple computers that aren't in sync; it is a nightmare. During the upgrade, mobile sync stopped working,

  • How can 'Consolidated' Report takes OutPut of 'Line Item' Report

    Hi I have 'Line Item Detail Report'(REPORT1) which gives the latest records . I want use these detail records as a input records to another consolidated report(REPORT2). I mean , REPORT1 - contains 'lastest detailed line items' . REPORT2 - contains '

  • Procedure of System copy in Solman 4.0 through sapinst based on ABAP+JAVA

    Hello Everyone, Iam on solman 4.0  based on netweaver 2004s based on ABAP+JAVA instance and database oracle 10g and on windows 2003 platform.I want to perform system copy for solman 4.0 through sapinst and if someone can provide step wise step proced

  • Integrating SAP Office Connector(Sonic) in Portal

    Hello All We are using SAP Netweaver 7.0 Ehp 1 sp05.We need to access sap inbox mails in portal,for this we have configured Sonic connector.But still we are not getting any notifications in UWL view. Is Sonic supported on this version? Since i am not