ID: 33362 User updated by: till at klimpong dot com Reported By: till at klimpong dot com -Status: Feedback +Status: Open Bug Type: FTP related Operating System: FreeBSD 5.2-current PHP Version: 4.3.10 New Comment:
Typo indeed. So I substituted strftime with gmdate and it works. Thanks for your help. Previous Comments: ------------------------------------------------------------------------ [2005-06-16 18:55:26] [EMAIL PROTECTED] You have extra '1' in the timestamp. (typo, I hope :) # php -r 'echo gmdate("F d Y H:i:s", 1118931496);' June 16 2005 14:18:16 That looks pretty okay to me. ------------------------------------------------------------------------ [2005-06-16 18:46:22] till at klimpong dot com Command: MDTM apache-ssl.txt Response: 213 20050616141816 Which is correct. ftp_mdtm on the same file returns 11189314961 ------------------------------------------------------------------------ [2005-06-16 18:29:22] [EMAIL PROTECTED] Check what MDTM command gives you for that file in question using your ftp client: > debug > modtime yourfile ------------------------------------------------------------------------ [2005-06-16 18:19:40] till at klimpong dot com Well, the server's time is set to GMT+2 already. The server is in my timezone and so on. So my local time and the server's time are the same. If the server is GMT+2, then the function returns it with GMT+4. Where does the difference come from then? ------------------------------------------------------------------------ [2005-06-16 18:10:53] [EMAIL PROTECTED] Yes, because your time is GMT+2. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33362 -- Edit this bug report at http://bugs.php.net/?id=33362&edit=1