php.net |  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
Votes:1
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:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-01-13 18:30 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-08 20:41 UTC] jani@php.net
-Package: Feature/Change Request +Package: FTP related
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 17:01:54 2014 UTC