John Simmons
2005-04-16 14:28:10 UTC
I'm writing a specialized FTP client that basically synchronizes files
between a server and a client. I've tried a number of methods for
retrieving the file date/time stamp from a couple of servers.
One server is my web-hosting site (referred to as the "remote server"
from this point), and the other is a local FileZilla server running on
Win2K (referred to as "local server" from this point).
The remote server returns the correct date, but the time is always
midnight, no matter what file I choose.
The local server returns what appears to be the file date/time based on
GMT.
When I connect to EITHER server with another FTP client, the file
date/time stamps are displayed normally (the times are what I would
expect).
What should I be doing to retrieve the date/time stamp?
between a server and a client. I've tried a number of methods for
retrieving the file date/time stamp from a couple of servers.
One server is my web-hosting site (referred to as the "remote server"
from this point), and the other is a local FileZilla server running on
Win2K (referred to as "local server" from this point).
The remote server returns the correct date, but the time is always
midnight, no matter what file I choose.
The local server returns what appears to be the file date/time based on
GMT.
When I connect to EITHER server with another FTP client, the file
date/time stamps are displayed normally (the times are what I would
expect).
What should I be doing to retrieve the date/time stamp?