搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

FTP protocol file timestamps incorrect

  • 3 回覆
  • 1 有這個問題
  • 4 次檢視
  • 最近回覆由 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.
附加的畫面擷圖

由 Roy Goodman 於 修改

所有回覆 (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.

由 Roy Goodman 於 修改