ID: 33362
Updated by: [EMAIL PROTECTED]
Reported By: till at klimpong dot com
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: FreeBSD 5.2-current
PHP Version: 4.3.10
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2005-06-16 14:42:04] till at klimpong dot com
Forgot to add. I also set the locale on my system. Just to make sure
that this is not some weird conversion bug.
<?php
setlocale(LC_ALL, 'de_DE.ISO8859-1');
?>
------------------------------------------------------------------------
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