PDA

View Full Version : How i can change the begining date to saturday?


hAnI
09-18-2006, 09:12 PM
hello every body
how i can change the begining date of week to saturday!!?

thank you

andy77
09-18-2006, 10:03 PM
only sunday/monday are supported as beginning of the week...

hAnI
09-18-2006, 10:10 PM
i can not edit the code de change this to saturady?!!

ironAlex
09-19-2006, 01:08 PM
Vivvo have only Sunday or Monday as start of the week.

However, you can change this if you are like to PHP.

First, change beginning of the week to Monday.

Now, edit Class/ Calendar.class.php, at the bottom of file you have to found function sun2mon($wday)

Replace whole function with this:

function sun2mon($wday)
{
$wday=$wday+1;
if ($wday>6) $wday=0;
return $wday;
}

Off course, function name have no sense, but this is a little hack.

And now, edit HTML_function.php. Search for
function HTML_calendar($date)
and:
if ($first_day_off_week=='monday') {
in it.
replace line started with $lnc_cal:
$lnc_cal = array('{LNC_SA}', '{LNC_SU}', '{LNC_MO}',
'{LNC_TU}', '{LNC_WE}', '{LNC_TH}', '{LNC_FR}' );

hAnI
09-19-2006, 02:18 PM
thank you :)