View Single Post

  #1 (permalink)  
Old 12-01-2003
Scott Fletcher
 
Posts: n/a
Default date() function doesn't seem to work right...

Hi Everyone!!!

I noticed that date() function act a little funny, so I am wondering if
anyone of you have noticed this problem or not. I'm just curious because I
wanna know if it is my issue or is it a general issue for everyone. I'm
using PHP version 4.2.3 on Unix machine. Please don't ask me to upgrade to
newer version because I don't have much time for it.

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

Thanks,
Scott
Reply With Quote