We're connecting to a number of set-top boxes. The clocks on the boxes are not used, and as such, bear no resemblance to reality.
Because of this, the boxes occasionally decide it's leap day. When we call DirDetails, we get the "String was not recognized as a valid DateTime." error because all that is returned is:
-rw-r--r-- 1 root root 4833 Feb 29 12:10 filename.txt
The box thinks it is 2004, which makes Feb 29 be legit, but we know it's 2009, so we get the error.
Setting the clocks on the box is not an option. We don't need to get the date, just a list of the files on the box and the size of the file.
Is there a way to get around this issue?