|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #47091 ftp_mdtm incorrectly adjusts for timezone
Submitted: 2009-01-13 18:30 UTC Modified: 2011-04-08 20:41 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: qwertywin at gmail dot com Assigned:
Status: Open Package: FTP related
PHP Version: 5.2.8 OS: Redhat ES5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: qwertywin at gmail dot com
New email:
PHP Version: OS:


 [2009-01-13 18:30 UTC] qwertywin at gmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-08 20:41 UTC]
-Package: Feature/Change Request +Package: FTP related
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 20 03:01:23 2020 UTC