View Single Post

  #2 (permalink)  
Old 12-01-2003
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] date() function doesn't seem to work right...

--- Scott Fletcher <scott@abcoa.com> wrote:
> When I do this script, I didn't get a ":" and numbers in second.
> --snip--
> date("Y-m-d H:i:s");
> --snip--
>
> But when I do this script by adding a period to it, it worked okay.
> --snip--
> date("Y-m-d H:i:s.");
> --snip--


Either this is a bug, or you're misrepresenting your code. Did you try
this with a test script that does nothing but echo each of these? If so,
can you show us your exact code (copy and paste to eliminate typos) and
exact output (same thing)?

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/
Reply With Quote