From: Dan A. <da...@gm...> - 2004-02-16 19:07:40
|
On Mon, Feb 16, 2004 at 12:08:14PM -0000, Thomas Fritzsche wrote: > I tested the current "Valentine release" + cobd.c patch. I wrote that I > get the time from the host system (only one hour diffenrence because I > didn't have setup the timezone). What I'm wondering is the fact that I > have not the same date. On colinux I have 12. Feb 2004 in Windows I have > 16. Feb. 2004 and I could not explain this 4 days by not setting the > timezone. The problem resides in the conversion between Windows' KeQuerySystemTime and the UNIX time returned to Linux. It returns the number of seconds since January 1, 1601 (should look at the history books to find out why Microsoft picked up this date). When calculating the difference I forgot to subtract the extra days of the 3 non existing leap years of 1700, 1800, and 1900. The last day is an off-by-one :). Fixed in the next release. -- Dan Aloni da...@gm... |