File date bug in MS Network Client 3.0 (Miscellaneous)
While moving data from old ThinkPad 770 to my new Evo N620c laptop I noticed a strange thing: Whenever copying (COPY, XCOPY, VC) a file with date "xxxx-01-01" (YYYY-MM-DD) from a network share its date becomes "adjusted" to "xxxx-13-01" (Do we have a 13th month, that I didn't know off? ). I wrote a small test tool in Turbo Pascal, which uses GetFTime to demonstrate this behaviour.
Here's the "packed" time result:
register DX (incorrect):
FEDCBA9 8765 43210 bit
0011010 1101 00001 value
2006 years (1980+26)
13 months (?!)
1 day
register CX (correct):
FEDCB A98765 43210 bit
01111 001101 00110 value
15 hours
13 minutes
12 seconds (6*2)
It's not a Y2K problem, because it also happens with older dates. This DOS function is involved: http://www.ctyme.com/intr/rb-2992.htm
Explanations are welcome! It's a little hard to debug this monster.
---
Forum admin
Complete thread:
- File date bug in MS Network Client 3.0 - rr, 02.09.2007, 18:46 (Miscellaneous)
- File date bug in MS Network Client 3.0 - Steve, 02.09.2007, 19:55
- File date bug in MS Network Client 3.0 - rr, 02.09.2007, 21:40
- File date bug in MS Network Client 3.0 - Steve, 02.09.2007, 22:08
- File date bug in MS Network Client 3.0 - rr, 02.09.2007, 22:09
- File date bug in MS Network Client 3.0 - Steve, 02.09.2007, 22:08
- File date bug in MS Network Client 3.0 - rr, 02.09.2007, 21:40
- File date bug in MS Network Client 3.0 - Rugxulo, 02.09.2007, 21:51
- File date bug in MS Network Client 3.0 - rr, 02.09.2007, 22:08
- File date bug in MS Network Client 3.0 - Rugxulo, 02.09.2007, 23:13
- File date bug in MS Network Client 3.0 - rr, 02.09.2007, 22:08
- File date bug in MS Network Client 3.0 - rr, 26.10.2007, 14:58
- File date bug in MS Network Client 3.0 - Steve, 02.09.2007, 19:55