From: <ji...@us...> - 2009-01-07 20:20:10
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8467/functions Modified Files: date_functions.php Log Message: timeformat serialization needed urlencode/decode? Index: date_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** date_functions.php 29 Dec 2008 03:07:34 -0000 1.48 --- date_functions.php 7 Jan 2009 20:20:03 -0000 1.49 *************** *** 99,102 **** --- 99,103 ---- $day = date("j", $timestamp); $dayofweek = date("w", $timestamp); + $weeknumber = date("W", $timestamp); $replacements = array( '%Y' => $year, *************** *** 106,109 **** --- 107,111 ---- '%A' => $daysofweek_lang[$dayofweek], '%a' => $daysofweekshort_lang[$dayofweek], + '%W' => $weeknumber, '%d' => sprintf("%02d", $day) ); |