ID:               15194
 Comment by:       harry at nijvink dot nl
 Reported By:      emetsger at jhu dot edu
 Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Solaris 7
 PHP Version:      4.2.1
 New Comment:

In this function you use the month as minutes. Try this:
date("m-d-y H:i:s", $timestamp) 

Harry van de Hoef
Nijvink Automatisering
http://www.nijvink.nl


Previous Comments:
------------------------------------------------------------------------

[2002-07-03 16:38:21] [EMAIL PROTECTED]

Sorry to disappoint you, I should've payed more attention to the
summary of this bug, as the error is already apparent there.
The minutes are "i", not "m" as in your example. Not wonder, you're
getting false results :-)

Bogusifying again.

P.S. the funny thing is, you're using the right format in your last
line of code *grin*. I hope you see the humor in it.

------------------------------------------------------------------------

[2002-07-03 16:12:27] emetsger at jhu dot edu

Please accept sincere apologies: I did not fully read your response. 
The pages should be open now (I have no real way to test them).

Thank you again!

------------------------------------------------------------------------

[2002-07-03 14:10:10] [EMAIL PROTECTED]

Sorry, but I couldn't reproduce this on my 5.8 system.

I did
touch -am -t 200203011200 timestamp.dat

timestamp.php is
<pre>
<?php
$timestamp = filemtime( "timestamp.dat" );
var_dump( $timestamp );
var_dump( date( "Y.m.d" , $timestamp ) );
var_dump( getdate( $timestamp ) );
?>
</pre>

output is
int(1014980400)
string(10) "2002.03.01"
array(11) {
  ["seconds"]=>
  int(0)
  ["minutes"]=>
  int(0)
  ["hours"]=>
  int(12)
  ["mday"]=>
  int(1)
  ["wday"]=>
  int(5)
  ["mon"]=>
  int(3)
  ["year"]=>
  int(2002)
  ["yday"]=>
  int(59)
  ["weekday"]=>
  string(6) "Friday"
  ["month"]=>
  string(5) "March"
  [0]=>
  int(1014980400)
}

so, everything looks ok by me.

As I'm still not able to see your code, are you _sure_ that you're not
making any errors?


------------------------------------------------------------------------

[2002-07-03 12:53:42] [EMAIL PROTECTED]

That was the purpose of my bugusifying of the report, to get an update
from you. Please take a look at the message ;-)
Anyway, your pages only yield a 403 Forbidden, so please grant access,
so that I can verify the bug. :-)

Thanks for helping!


------------------------------------------------------------------------

[2002-07-03 12:48:48] emetsger at jhu dot edu

Changed status back to Open.

------------------------------------------------------------------------

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/15194

-- 
Edit this bug report at http://bugs.php.net/?id=15194&edit=1

Reply via email to