note 35932 deleted from function.jdmonthname by didou
| From: | didou@php.net | Date: | Fri, 19 Sep 2003 15:01:59 +0000 |
| Subject: | note 35932 deleted from function.jdmonthname by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56770@lists.php.net to get a copy of this message | ||
Note Submitter: os@kinikena.com
----
I tried using the method suggested by 'g8z at yahoo dot com' and ran into a strange
problem.
A page that produces a daily report is loaded would then save an html file titled
'/report/$year/$month/$monthName-$day-$year.html'.
The month name was produced by
$monthName = jdmonthname (juliantojd($month, $day, $year, 0 );
The file was always saved in the proper directory of 'report/$year/$month/' but around the
18th of every month the $monthName would suddenly change to the next month.
For example,
September 16, 2002 would produce file "report/2002/9/Sep-16-2002.html"
September 17, 2002 would produce file "report/2002/9/Sep-17-2002.html"
Then,
September 18, 2003 would produce file "report/2002/9/Oct-18-2002.html"
And so on for the duration of the month.
October 1, 2003 would go back to normal producing "report/2002/10/Oct-1-2002.html"
...
Until the 18th which would name the relevant file Nov-18-2002.html