4a9 Subj : Re: Reading PC time To : borland.public.cpp.borlandcpp From : Jeff Baker Date : Sat Jun 12 2004 06:17 pm I had a similar experience. I tried making successive calls for the time and that seemed to work fairly well but in the end I ended up converting the project over to 32-bit and the problem went away. - Jeff "Mike Mellen" wrote in message news:4069bd28@newsgroups.borland.com... > I'm supporting a 16-bit app developed with BCPP 4.51. At various times it > has to read the current time from the PC using time() and localtime(). On > Win98, it works fine. On Win2K and WinXP, some users reported that the > reported time was sometimes not correct. I have been able to duplicate the > problem by running the app and having it read the time, which it does > correctly. Then, while the app is still running, I change the PC's clock by > bumping the hour ahead or back. The app then reports the correct minutes > and seconds, but still reports the original hour that it was reporting > before I changed the clock. If I close the app, then restart it, it now > reports the new time "correctly". > > Any ideas? > > . 0