Jump to content


Photo

UTC file time on FTP servers


  • Please log in to reply
1 reply to this topic

#1 Nikeware

Nikeware
  • Members
  • 27 posts
  • Interests:
    Diff Commander - folders compare and merge tool<br />Visual Comparer - text files compare and merge tool

Posted 23 June 2006 - 08:56 AM

Hello,

I have few questions about file time creation on FTP servers:

1. Some files have date/time without hour/minute/second values (always 0). I detected that those files has old creation date (half-year ago or later). It is RFC standard?

2. About UTC. How many FTP servers have this feature?

3. MDTM command works with time in UTC format?

4. If FTP server does not support UTC, possibly detect time zone for this server? Or I must set up UTC offset manually from my program for each ftp connection individually?

Regars,
Nikolai

#2 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 25 June 2006 - 12:14 AM

>1. Some files have date/time without hour/minute/second values (always 0). I detected that those files has old creation date (half-year ago or later). It is RFC standard?
As far as I know there is no RFC standard for UNIX listings. But that's the problem with UNIX listings.

>2. About UTC. How many FTP servers have this feature?
If the server supports MDTM or MLST/MLSD the time is in UTC. Otherwise the time is usually represented in local time.

>3. MDTM command works with time in UTC format?
According to the draft yes. Most servers follow this draft. But as always some don't.

>4. If FTP server does not support UTC, possibly detect time zone for this server? Or I must set up UTC offset manually from my program for each ftp connection individually?
We didn't figure out a reliable way to detect the time zone. Therefore you will find a timezone setting in the SmartFTP client. This will be used if the server doesn't support MDTM or MLSD/MLST.

Regards,
-Mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users