Doc #47091 [Asn->Csd]: ftp_mdtm adjusts for local timezone
| From: | cmb@php.net | Date: | Fri, 19 Feb 2021 15:40:53 +0000 |
| Subject: | Doc #47091 [Asn->Csd]: ftp_mdtm adjusts for local timezone | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18574@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 adjusts for local timezone
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: FTP related
Operating System: Redhat ES5
PHP Version: 5.2.8
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=def2d256ef5806ca6e7b59e05b8ee312e3703a0f
Log: Fix #47091: ftp_mdtm adjusts for local timezone
Previous Comments:
------------------------------------------------------------------------
[2021-02-19 15:28:45] cmb@php.net
> [â¦] 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>
------------------------------------------------------------------------
[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