Home » Date and Time » Date » Bug #689
Other way to write it
Details
| Submitted | 2004-02-05 12:00 UTC |
|---|---|
| From | smailling at free dot fr |
| Status | Wont fix |
| Package | Date |
| PHP Version | 4.3.4 |
| OS | Windows 2000 |
| Roadmaps | (Not assigned) |
Comments
[2004-02-05 12:00 UTC] smailling at free dot fr
Description:
------------
Because printf is used everywhere around in the function, we could do the same?
317c328
< $output .= $this->day * 1; // get rid of leading zero
---
> $output .= sprintf("%02d", $this->day);
404a416