Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_modules / postcalendar / pnblocks [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 10 Sep 2002 15:30:02 | postnuke_modules/postcalendar/pnblocks | calendar.php,1.63,1.64 | Roger Raymond |
| date format changes | |||
Update of /home/cvsroot/postnuke_modules/postcalendar/pnblocks
In directory ns7.hostnuke.net:/tmp/cvs-serv32313/pnblocks
Modified Files:
calendar.php
Log Message:
date format changes
Index: calendar.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnblocks/calendar.php,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** calendar.php 7 Sep 2002 15:39:38 -0000 1.63
--- calendar.php 10 Sep 2002 15:30:00 -0000 1.64
***************
*** 110,114 ****
$time = time();
$time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600;
! $Date = ml_ftime('%m/%d/%Y',$time);
}
// get DB information
--- 110,114 ----
$time = time();
$time += (pnUserGetVar('timezone_offset') - pnConfigGetVar('timezone_offset')) * 3600;
! $Date = ml_ftime('%Y%m%d',$time);
}
// get DB information
***************
*** 148,160 ****
if($eventsopeninnewwindow) { $output .= pnModAPIFunc('postcalendar','user','jsPopup'); }
// Let's setup the info to build this sucka!
! list($the_month,$the_day,$the_year) = explode('/',$Date);
// set up the next and previous months to move to
! $prev_month = Date_Calc::beginOfPrevMonth(1,$the_month,$the_year,'%m/%d/%Y');
! $next_month = Date_Calc::beginOfNextMonth(1,$the_month,$the_year,'%m/%d/%Y');
$last_day = Date_Calc::daysInMonth($the_month,$the_year);
$pc_prev = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$prev_month));
$pc_next = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$next_month));
$pc_month_name = pnModAPIFunc('postcalendar', 'user', 'getmonthname', array('Date'=>mktime(0,0,0,$the_month,$the_day,$the_year)));
! $month_link_url = pnModURL('postcalendar', 'user', 'view', array('tplview'=>$template_view,'viewtype'=>'month','Date'=>date('m/d/Y',mktime(0,0,0,$the_month,1,$the_year))));
$month_link_text = $pc_month_name.' '.$the_year;
//*******************************************************************
--- 148,162 ----
if($eventsopeninnewwindow) { $output .= pnModAPIFunc('postcalendar','user','jsPopup'); }
// Let's setup the info to build this sucka!
! $the_year = substr($Date,0,4);
! $the_month = substr($Date,4,2);
! $the_day = substr($Date,6,2);
// set up the next and previous months to move to
! $prev_month = Date_Calc::beginOfPrevMonth(1,$the_month,$the_year,'%Y%m%d');
! $next_month = Date_Calc::beginOfNextMonth(1,$the_month,$the_year,'%Y%m%d');
$last_day = Date_Calc::daysInMonth($the_month,$the_year);
$pc_prev = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$prev_month));
$pc_next = pnModURL('postcalendar','user','view',array('tplview'=>$template_view,'viewtype'=>'month','Date'=>$next_month));
$pc_month_name = pnModAPIFunc('postcalendar', 'user', 'getmonthname', array('Date'=>mktime(0,0,0,$the_month,$the_day,$the_year)));
! $month_link_url = pnModURL('postcalendar', 'user', 'view', array('tplview'=>$template_view,'viewtype'=>'month','Date'=>date('Ymd',mktime(0,0,0,$the_month,1,$the_year))));
$month_link_text = $pc_month_name.' '.$the_year;
//*******************************************************************
View Statistics - Next Notice - Previous Notice
| Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |