Time upload problem

When ever I upload a file to my web site it up with the wrong date by it in sted of saying 2/22/2003 it end up being 2/22//2002.

Hi there!

I

it shows you the time of the file on the server. report the wrong time to the server admin.

darix

hhmmmmmm... sounds like a setting problem.. try looking in there

I'm having this problem, too. When I upload a file to my server in the evening, PDT, the time stamp as seen in the file management window for the server is a year earlier than the actual date. In other words, it's showing 2002 instead of 2003.

I just established my current hosting account, so I thought the problem was on the server. The host says it isn't. Turns out that during the day, the year displays properly, even for files that weren't updated since I first saw them with the wrong year.

I just used another ftp program to take a look and it shows the current year for all files, even while SmartFTP shows 2002. If I browse the site with my browser, the same applies. So the problem appears to be in SmartFTP.

The time on the server seems to be GMT. It may be that this problem occurs only in the AM, GMT. Then once it's after noon, the year displays correctly. I can't say for sure, though, as I haven't tested along those lines.

Before I report this as a bug, have any others seen this and come up with any ideas about what's happening?

Hello ..

Please post the relevant part of the raw directory listing. With the current time and timezone and the time/date shown by SmartFTP.

Include your system info as well.

Thanks a lot.

Regards,
-Mat

Thanks for replying in this forum. Here are some further notes (excuse some redundancy as I'd prepared the message to post in the bugs section just before I read your response to my prior message) along with the information you requested:

------

raw listing:

drwxr-x--- 4 32054 99 4096 Oct 18 23:50 .
drwx--x--x 9 32054 shachor 4096 Oct 18 15:51 ..
-rw-r--r-- 1 32054 shachor 0 Oct 13 21:27 .htaccess
-rw-r--r-- 1 32054 shachor 1617 Oct 16 19:20 HandleContact.php
-rw-r--r-- 1 32054 shachor 954 Oct 15 04:58 HandleForm.php
-rw-r--r-- 1 32054 shachor 306 Oct 18 05:24 HandleForm2.php
-rw-r--r-- 1 32054 shachor 677 Oct 19 00:01 HandleFormRE.php
-rw-r--r-- 1 32054 shachor 894 Oct 18 05:01 HandleList.php
-rw-r--r-- 1 32054 shachor 161 Oct 17 00:07 _index.html
drwxr-xr-x 2 32054 shachor 4096 Oct 13 18:14 cgi-bin
-rw-r--r-- 1 32054 shachor 718 Oct 16 19:17 contact.html
-rw-r--r-- 1 32054 shachor 4737 Oct 18 23:58 error_log
-rw-r--r-- 1 32054 shachor 138 Oct 13 23:55 first.php
-rw-r--r-- 1 32054 shachor 310 Oct 14 00:20 first1.php
-rw-r--r-- 1 32054 shachor 546 Oct 14 00:52 form.html
-rw-r--r-- 1 32054 shachor 628 Oct 18 05:24 form2.html
-rw-r--r-- 1 32054 shachor 625 Oct 18 23:55 formRE.html
-rw-r--r-- 1 32054 shachor 383 Oct 14 02:40 hello.php
-rw-r--r-- 1 32054 shachor 460 Oct 16 07:25 hello2.php
-rw-r--r-- 1 32054 shachor 375 Oct 18 04:43 list.html
-rw-r--r-- 1 32054 shachor 1744 Oct 16 06:11 numbers.php
-rw-r--r-- 1 32054 shachor 663 Oct 15 06:51 passwords.php
-rw-r--r-- 1 32054 shachor 392 Oct 17 05:09 primes.php
drwxr-xr-x 2 32054 shachor 4096 Oct 15 01:10 scgi-bin
-rw-r--r-- 1 32054 shachor 1573 Oct 16 20:14 select.php
-rw-r--r-- 1 32054 shachor 2156 Oct 18 03:55 sort.php
-rw-r--r-- 1 32054 shachor 1108 Oct 17 18:04 soups.php
-rw-r--r-- 1 32054 shachor 532 Oct 17 14:56 soups2.php
-rw-r--r-- 1 32054 shachor 101 Oct 13 21:26 test.php
-rw-r--r-- 1 32054 shachor 326 Oct 15 02:05 welcome.php

-------------------------------------------------------------------------------------

The file dated 00:01 on Oct 19 is showing up as 2002 on my SmartFTP remote window. But a few minutes before, it was displaying a 2003 time stamp.

The relevant data from line in the remote window for that file reads:

HandleFormRE.php 10/19/2002 0:01 AM

At 23:57 on 10/18/2003, it read:

HandleFormRE.php 10/18/2002 11:57 PM

I've figured out a little more since my prior post. When I upload a file to my server between 0:00AM server time (GMT in this case) until about 06:00AM (or possibly a little later, but still before 12:00PM) server time, the time stamp as seen in the file management window for the server is a year earlier than the actual date. In other words, it's showing 2002 instead of 2003. The rest of the day, there is no problem. On my personal machine from where I'm ftping, the year is correct.

I just established my current hosting account less than a week ago, so I thought the problem was on the server. The host says it isn't. I tried another ftp program to take a look and it shows the current and correct year on the server for all files, even while SmartFTP shows 2002 in the remote window. If I browse the server with my browser, the same applies. So the problem appears to be in SmartFTP.

+- System -----------------------------

Microsoft Windows XP Professional
Service Pack 1 (Build 2600)

CPU Speed : 1611 MHz
Total Memory : 523744 KB
Free Memory : 113892 KB

+- SmartFTP ---------------------------

Version : 1.0.979.1
Time Stamp : 2003-09-17 13:37:55

+- Application DLL --------------------

controls.dll : 1.6.979.1
ftpapi.dll : 2.0.979.1
language.dll : 1.0.979.1
reseng.dll : 1.3.979.1
smarthook.dll : 1.0.2.1

+- System DLL -------------------------

shell32.dll : 6.00.2800.1145 (xpsp2.021108-1929)
shlwapi.dll : 6.00.2800.1226
comctl32.dll : 6.0 (xpsp1.020828-1920)
riched20.dll : 5.30.23.1211
schannel.dll : 5.1.2600.1106 (xpsp1.020828-1920)

+- Internet Explorer ------------------

Version : 6.0.2800.1106

+- Winsock ----------------------------

Winsock : 2.2

I didn't include time zone as shown by SmartFTP, because I don't see it anywhere, nor do I see any to display it. Excuse my ignorance if I've made a mistake. Same goes for current time. It was about 5:15PM, PDT on my computer.

Thank you.

For dates without a year in the listing the following rule applies:

If date in listing is in the future: Year = Current Year - 1
There's some +- here (about 6 hours) because the FTP server may be in a different time zone.

If date is in the past: Year = Current Year

That's the reason the year is not always correct. If you have a better idea how to solve this "missing year in date" problem pelase let me know.

A small group of servers are supporting the -T option for the LIST command.
-T = full date/time

That would explain it. The difference must be 7 hours. As soon as it's the same date here as it is on the server, the year will be the same year.

I understand the thinking behind the year calculations in the absence of one in the raw listing. I'm assuming that SmartFTP makes the calculation based on this absence of a year being returned from the server. But what's happening in the browser and the other ftp program where it's displayed correctly?

From IE (I've deleted most of the files):

Index of /

Name Last modified Size Description

Parent Directory 18-Oct-2003 15:51 -
HandleContact.php 16-Oct-2003 19:20 2k
HandleForm.php 15-Oct-2003 04:58 1k
HandleForm2.php 18-Oct-2003 05:24 1k
HandleFormRE.php 19-Oct-2003 00:38 1k
HandleList.php 18-Oct-2003 05:01 1k

Apache/1.3.28 Server

HandleFormRE.php has the proper year there. As does a simple FTP program that's part of the file manager I use. Why there and not in the far more sophisticated SmartFTP?

Perhaps it's a question of how far into the future the time difference is. If my machine says it's October 18 and the server says October 19, then why not have the server year be the same as the client year. But if the discrepancy is greater than a day, then go to the formula.

Is this to say, in fact, that the server doesn't return the year, therefore, five years from now, if I have files on the server from 2003, 2004, 2005, 2006 and 2007, that all files will be dated 2006 or 2007 in my remote window view?

If so, I think I need to contact my host...

Please let me know if I'm reading this correctly, Mat, and thanks for all the help.