all groups > iis ftp > june 2004 >
You're in the

iis ftp

group:

timezone missing for ftp transfers...



timezone missing for ftp transfers... Shawn
6/22/2004 11:30:14 AM
iis ftp: One of my users has reported that files copied from our
FTP server have the wrong time when they are saved to her
PC. It turns out that when files are transfered with FTP
from our Win2k server the timezone is ignored and the file
is saved using GMT. This means the files copied to her PC
very often have a time that is in the future by 6 hours.

Our tech research has not come up with a fix for win2k
servers but has found alot about a zoneinfo file used by
*nix. Does windows use a similar file?

Any help would be appreciated.

Re: timezone missing for ftp transfers... Alun Jones [MSFT]
6/22/2004 1:41:29 PM
[quoted text, click to view]

This is going to depend on what the client software uses to set the local
time. What is the client that is in use here?

Just for information's sake, the times in directory listings are in the
local time zone of the server - which means that they are not a reliable
measure (because the client can't tell what time zone is set at the server
using any standard FTP commands) across timezones. They are good as a first
approximation only, or for people in the same time zone.

There is a command, MDTM, that can be used to determine the GMT time of the
file's last update. Since this is based off a fixed time zone, it can be
relied upon by clients to generate an appropriate local timestamp.
Unfortunately, it's not in a published RFC, so there are some clients that
either implement it badly, or choose not to trust in its presence, because
it is not yet a sanctioned "standard".

Depending on your client, it may be possible to choose which method to use,
and how to apply it, but the FTP server in IIS behaves correctly for either
method of retrieving time information.

Alun.
~~~~

Re: timezone missing for ftp transfers... anonymous NO[at]SPAM discussions.microsoft.com
6/24/2004 1:07:31 PM
They are using CoreFTP v 1.2

We have tried all three settings Core has for dealing with
MDTM the closest we got was having the files saves using
the PC's local time.

Thx
Shawn


[quoted text, click to view]
Re: timezone missing for ftp transfers... alunj NO[at]SPAM online.microsoft.com (
6/24/2004 8:53:37 PM
[quoted text, click to view]

I'm not familiar with that client, I'm afraid.

[quoted text, click to view]

What are the other settings?

This would appear to be a client or client-configuration problem. IIS is
correctly returning the times for the files in GMT format. Here's a
relevant section from draft-ietf-ftpext-mlst-16.txt:

2.3. Times

The syntax of a time value is:

time-val = 14DIGIT [ "." 1*DIGIT ]

The leading, mandatory, fourteen digits are to be interpreted as, in
order from the leftmost, four digits giving the year, with a range of
1000--9999, two digits giving the month of the year, with a range of
01--12, two digits giving the day of the month, with a range of
01--31, two digits giving the hour of the day, with a range of
00--23, two digits giving minutes past the hour, with a range of
00--59, and finally, two digits giving seconds past the minute, with
a range of 00--60 (with 60 being used only at a leap second). Years
in the tenth century, and earlier, cannot be expressed. This is not
considered a serious defect of the protocol.

The optional digits, which are preceded by a period, give decimal
fractions of a second. These may be given to whatever precision is
appropriate to the circumstance, however implementations MUST NOT add
precision to time-vals where that precision does not exist in the
underlying value being transmitted.

Symbolically, a time-val may be viewed as

YYYYMMDDHHMMSS.sss

The "." and subsequent digits ("sss") are optional. However the "."
MUST NOT appear unless at least one following digit also appears.

Time values are always represented in UTC (GMT), and in the Gregorian
calendar regardless of what calendar may have been in use at the date
and time indicated at the location of the server-PI.

The technical differences between GMT, TAI, UTC, UT1, UT2, etc, are
not considered here. A server-FTP process should always use the same
time reference, so the times it returns will be consistent. Clients
are not expected to be time synchronized with the server, so the
possible difference in times that might be reported by the different
time standards is not considered important.

Alun.
~~~~
AddThis Social Bookmark Button