Subject: | Unix filetimes strange touch results |
Posted by: | Chuck Anderson (cycletourist@invalid.invalid) |
Date: | Fri, 06 Nov 2009 |
It would take too much to explain what got me looking at this, so I'll
just report what I've discovered.
If I touch a file on my Linux host with a date (and time) before
2009/05/10, no matter what I set the time as, when I look at the file
time using any FTP client (Filezilla, WSFTP, and Leech), the file time
is 00:00.
If I touch it with a date (and time) that is after 2009/05/10, the FTP
programs display the correct time.
This is playing havoc with my remote<->local file synchronization utility.
It's this simple:
If I enter:
touch -d200905091212.12 sample_file.txt
and look in my ftp program, the file date and time is: 05092009 00:00
If I enter:
touch -d200905101212.12 sample_file.txt
and look in my ftp program, the file date and time is: 05102009 12:12
Through trial and error, I have stumbled on this "crossover" date.
What am I missing here? And what's so special with May 10, 2009?
(Is this perhaps specific to my host?)
--
*****************************
Chuck Anderson • Boulder, CO
http://www.cycletourist.com
Turn Off, Tune Out, Drop In
*****************************