cvs server tim lag

Posted on 2004-11-07
Last Modified: 2010-04-20

we are using cvs-1.10.8-8 on redhat 7.0 (2.2.16-22) local server, but time differs where can i set the system time.
so that the time should be same as CVS server time.

thanks in advance.

Question by:itsramesh
    LVL 2

    Expert Comment

    To set the system clock under Linux, use the date command. As an example, to set the current time and date to July 31, 11:16pm, type ``date 07312316'' (note that the time is given in 24 hour notation). If you wanted to change the year as well, you could type ``date 073123161998''. To set the seconds as well, type ``date 07312316.30'' or ``date 073123161998.30''. To see what Linux thinks the current local time is, run date with no arguments.

    LVL 3

    Accepted Solution

    And you can use rdate to sync your time with any time servers (rdate -s time.server.of.your.choice), so you will have the precise time. You can also sync the hardware clock (hwclock --systohc) once the system one is correct.

    for example, this is the script that i have in my cron jobs:
    rdate -s && hwclock --systohc
    LVL 2

    Expert Comment

    If you want to synchronize time with atomic time servers, you'd better use ntp.

    Hope this helps.
    LVL 3

    Expert Comment

    rdate works with NTP servers too.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now