Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

FTP protocol file timestamps incorrect

  • 3 پاسخ
  • 1 has this problem
  • 4 views
  • آخرین پاسخ توسّط Roy Goodman

more options

When accessing my server using a ftp:// protocol URL, the timestamps displayed for all files are incorrect. For instance, if a file was created at 12:01 PM EST today, verified by logging into the server directly, then Firefox will display it as 7:01 AM EST. Note that both the server and my browser are in EST.

No other FTP client displays the time this way, so I don't think it's something wrong with the server. The only thing I can think of is that the server is not supplying any timezone information, so Firefox thinks that the server is on UTC which it then converts to EST for me. However, this is an incorrect assumption.

The server is running pure-ftpd on OpenBSD, if that helps.

When accessing my server using a ftp:// protocol URL, the timestamps displayed for all files are incorrect. For instance, if a file was created at 12:01 PM EST today, verified by logging into the server directly, then Firefox will display it as 7:01 AM EST. Note that both the server and my browser are in EST. No other FTP client displays the time this way, so I don't think it's something wrong with the server. The only thing I can think of is that the server is not supplying any timezone information, so Firefox thinks that the server is on UTC which it then converts to EST for me. However, this is an incorrect assumption. The server is running pure-ftpd on OpenBSD, if that helps.
Attached screenshots

Modified by Roy Goodman

All Replies (3)

more options

Are you possibly using "Resist Fingerprinting" as that sets you in the UTC timezone ?

more options

cor-el said

Are you possibly using "Resist Fingerprinting" as that sets you in the UTC timezone ?

I am not, but thanks for the suggestion. It seems that Firefox thinks that the server, rather than the client, is in UTC, since the times on the page show in EST.

more options

Here is a listing of the directory on the server shown in the attached image:

  • $ date
  • Fri Feb 28 13:03:28 EST 2020
  • $ ls -la
  • total 1520
  • dr-xr-x--- 6 rlgoodman ftpgroup 512 Feb 28 12:52 .
  • drwxr-x--- 5 root ftpgroup 512 Jan 23 15:50 ..
  • dr-xr-x--- 5 rlgoodman ftpgroup 512 Jul 18 2017 ap21rm-ff
  • dr-xr-x--- 3 rlgoodman ftpgroup 512 Jul 18 2017 ax-util-keys
  • dr-xr-x--- 2 rlgoodman ftpgroup 583168 Feb 28 10:50 current
  • -rw-r--r-- 2 ops-rm ops-rm 64105 Feb 28 12:52 entitledAxiomaItems.xml
  • -rw-r--r-- 2 ops-rm ops-rm 62209 Feb 28 12:50 entitledAxiomaItemsV2.xml
  • dr-xr-x--- 3 rlgoodman ftpgroup 512 Jul 18 2017 esm-flatfile
  • -rwxr-xr-x 711 ops-rm ops-rm 15636 Feb 27 16:01 noDistributionDates.xml

As you can see in the attached image, the timestamps shown by Firefox are 5 hours off from the actual time.

Modified by Roy Goodman