Results 1 to 9 of 9

Thread: System time correction

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    5

    System time correction

    Hi everybody,

    I have a computer that has some problems with the system time and date. It's runs windows 98 and is has no internet connection.

    I am looking for a program or a piece of code that can run a parallel clock, that I can manually set to the correct time. From that point on it should correct the system time every once in a while. ( minute? )

    The reason why I am looking for this, is that somehow every day the system time changes 2 hours. I would like an independant clock correcting it when this happens.

    I know there are a lot of time correction programs when you search on google, but they all require internet connections because they use a different method ( checking a time server every once in a while ).

    Does anybody have an idea?

    Regards,

    Chris

  2. #2
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: System time correction

    VB Code:
    1. Date$ = txtDate.Text
    2. Time$ = txtTime.Text
    3. 'make sure you enter the correct date and time format in the textboxes.
    Or just double-click your clock and set the date and time.

    If you have no internet connection and the date and time alter then I would replace the CMOS battery.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    5

    Re: System time correction

    Keithuk,

    I am aware of the fact that you can simply "set" the time. The only problem is. I can not do this 600 times a day manually. I need a program running in the background making sure that the system time will not suddenly fall back 2 hours.

    But this is kind of hard without an internet connection because I can not use time servers.

    So I need some kind of parallel clock that I can set at startup and from then on works independantly from the system time clock, correcting it once a minute or so.

    Does anybody have idea's for this?

    Chris

  4. #4
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: System time correction

    once you set your time eventhough cmos battery is down the time will remain until you restart your system, you dont need to change the time 600 times...this is strange that your system suddenly falls back by 2 hours...must be some virus or something else...
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  5. #5
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: System time correction

    Double click the time in the bottom right of the screen, go to timezone tab and remove checkmark on switch automatically to summer and winter time. My guess on what you have wrong on the computer; removing the cause of the problem is more effective than patching it with a bubblegum

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    5

    Re: System time correction

    Yes, that is what I thought aswell. CMOS should only have influence at the start up. I don't think it is a virus, because the computer has had almost no external influences or programs installed.

    But the program I am looking for. Does anybody have an idea for this? I was thinking of the following method:

    suppose the system time does suddenly fall back one or two hours. I could write a program that could remember a system time every 5 seconds and compare them. If the time were to change drastically it could detect this by subtracting the second last time from the last time, i.e: The difference. It should ofcourse be a difference of 5 seconds.

    Does such a program exist? I don't currently have the means to write such a programme because I have no MSVS6.0 with me.

    Or does anybody of you know another program that could help solve my problem?

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    5

    Re: System time correction

    Hmmmm, I like bubble gum.

    Thanks for that useful response. I have considered changing that, but I thought it should not be the cause for the problem. On the other hand... why not, everythings possible.

  8. #8
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: System time correction

    Not sure if this will work 100%.
    Attached Files Attached Files

  9. #9
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: System time correction

    Xenos: that's what caused me my constant time changing problems when I had Win98; I disabled it because the DST thing just didn't work correctly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width