Re: [PATCH] Fix date() bug
| From: | Alexey Zakhlestin | Date: | Sat, 27 Sep 2008 07:40:52 +0000 |
| Subject: | Re: [PATCH] Fix date() bug | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40727@lists.php.net to get a copy of this message | ||
On Sat, Sep 27, 2008 at 11:04 AM, Ilia Cheishvili
<ilia.cheishvili@gmail.com> wrote:
> Hi all,
> This patch addresses the issue with the date() function. When passing in a
> 'u', the date() function simply outputs six zeros. To fix this, I added a
> gettimeofday() call that figures out what to display for microseconds. I am
> including the headers and using the function with pre-processor safeguards
> as well.
> Take a look :)
Wouldn't it be better, to make gettimeofday() call only in case of 'u'?
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/