by Admin » Sun Oct 07, 2007 7:33 pm
Ok, I can recreate the problem.....but can find no way to fix it!
I hold the delta time field on the screen as a CTime value. It shows values in local time.
I also use the same value to make the delta adjustment. So, if the CTime value is 3600 then 3600 seconds (e.g. one hour) gets added to the datestamp. The problem occurs because CTime expects values in local time, but it then converts the values internally to UTC time and validates them. In your case it subtracts 5 hours. If you have specified to adjust the timestamp by LESS THAN 5 hours, the CTime value becomes negative, and Windows throws the error.
So, I can recreate it. But having tried everything I can think of, I still cannot get anything which works properly. So I'm stumped!
Jim
PS This is also why your times default to 19:00:00. When you have no .INI file the value is zero, and I pass Zero to this field. But Windows assumes this is to be shown in local time so it subtracts 5 hours.