GetHour from CTime returns different values in debug and release version

  • Thread starter Thread starter Computerfreak0815
  • Start date Start date
C

Computerfreak0815

Guest
I have a strange problem. I have a large software which runs since years without problem. Now the sources are upgraded to Visual Studio 2017. Since then I have a problem in the release version:

CTime tCurrent = CTime::GetCurrentTime();
int rob = tCurrent.GetHour();


rob is in the debug version okay but in the release it is 9 hours earlier. e.g. in debug it is 10 a.m. and in the release 1 a.m. even though tCurrent has the same correct value in both cases

I created a small test program and there I can't reproduce the problem.

has anybody an idea?

Continue reading...
 
Back
Top