Req->Doc #47091 [Opn]: ftp_mdtm adjusts for local timezone
| From: | cmb@php.net | Date: | Fri, 19 Feb 2021 15:28:46 +0000 |
| Subject: | Req->Doc #47091 [Opn]: ftp_mdtm adjusts for local timezone | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18573@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=47091&edit=1
ID: 47091
Updated by: cmb@php.net
Reported by: qwertywin at gmail dot com
-Summary: ftp_mdtm incorrectly adjusts for timezone
+Summary: ftp_mdtm adjusts for local timezone
Status: Open
-Type: Feature/Change Request
+Type: Documentation Problem
Package: FTP related
Operating System: Redhat ES5
PHP Version: 5.2.8
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> [â¦] as ftp's are non-standard in there handling of whether the
> timestamp is GMT/Local
While that still may be true in practice, RFC 3659, section 3.4[1]
is explicit:
| The times are in GMT, [â¦]
Anyhow, given ftp_mdtm() always worked this way, and that fmtime()
also returns local timestamps, I don't see that this will ever
change, so changing to documentation issue.
If you still feel strongly about this, please pursue the RFC
process[2].
[1] <https://tools.ietf.org/html/rfc3659#section-3.4>
[2] <https://wiki.php.net/rfc/howto>
Previous Comments:
------------------------------------------------------------------------
[2009-01-13 18:30:28] qwertywin at gmail dot com
Description:
------------
ftp_mdtm receives the file modified time via the MDTM ftp command
it then proceeds to adjust this timestamp to the current systems
timezone, which is a very bad assumption to make as ftp's are non-
standard in there handling of whether the timestamp is GMT/Local
Thus the modification is compounding the problem.
Reproduce code:
---------------
refer to \ext\ftp\ftp.c ftp_mdtm
Expected result:
----------------
the timestamp recieved from the ftp server.
Actual result:
--------------
the timestamp adjusted.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=47091&edit=1