Page 1 of 1

Copying files with really old dates will pop-up write error.

Posted: 2021-06-07, 21:04 UTC
by humpty
Admittedly, the file modified date/time was wrong to begin with, but I didn't expect a pop-up.

TC 3.22
TC-LAN Plugin 3.06
Pop-Up: Error writing to target file! /storage/emulated/0/Download/some.file!

(File was still copied ok.)

Modified Stamp: 1970-01-01 08:00:00 (on linux machine)
TC Date Time: 1/1/01 07:36 (on phone)

Re: Copying files with really old dates will pop-up write error.

Posted: 2021-06-08, 07:37 UTC
by ghisler(Author)
You get an exception when setLastModified causes an exception. According to Google documentation, this happens when the timestamp is a negative number. Zero timestamp would be 00:00:00 GMT, January 1, 1970. So 8:00 should not be negative, and not cause an exception. But due to time zone conversion it could become negative (1970-01-01 08:00:00 is local time, setLastModified uses GMT).