Revision: 252
http://hw4mdl.svn.sourceforge.net/hw4mdl/?rev=252&view=rev
Author: trollinger
Date: 2008-03-05 15:01:52 -0800 (Wed, 05 Mar 2008)
Log Message:
-----------
Fix a bug on the calendar. The date on the moodle calendar was not the good one
Modified Paths:
--------------
branches/team/Thomas/moodle_3_1_2/mod/liveclassroom/mod.html
Modified: branches/team/Thomas/moodle_3_1_2/mod/liveclassroom/mod.html
===================================================================
--- branches/team/Thomas/moodle_3_1_2/mod/liveclassroom/mod.html 2008-03-03 18:43:57 UTC (rev 251)
+++ branches/team/Thomas/moodle_3_1_2/mod/liveclassroom/mod.html 2008-03-05 23:01:52 UTC (rev 252)
@@ -174,6 +174,8 @@
}
$stringDate="";
+$eventDate=mktime(0,0,0,1,date('z',$course->startdate)+($sectionId-1)*7+1,date('y',$course->startdate)) ;
+
if($course->format == "topics" || $course->format == "social"){
}
@@ -183,8 +185,7 @@
}
else if($sectionId != 0)
{
- $eventDate=mktime(0,0,0,1,date('z',$course->startdate)+($sectionId-1)*7+1,date('y',$course->startdate)) ;
- $stringDate=date('m',$eventDate)."/".date('d',$eventDate)."/".date('Y',$eventDate);
+ $stringDate=date('m',$eventDate)."/".date('d',$eventDate)."/".date('Y',$eventDate);
}
// Visible to students or not
@@ -996,10 +997,8 @@
<input type="hidden" name=module value="<?php p($form->module) ?>" />
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<input type="hidden" name=instance value="<?php p($form->instance) ?>" />
- <input type="hidden" name=mode value="<?php p($form->mode) ?>" />
-
- <input type="hidden" value="<?php echo $event->timestart;?>" name="calendar_start" id="calendar_start">
- <input type="hidden" value="<?php echo $course->startdate;?>" name="calendar_start" id="calendar_start">
+ <input type="hidden" name=mode value="<?php p($form->mode) ?>" />
+ <input type="hidden" value="<?php echo $eventDate;?>" name="calendar_start" id="calendar_start">
</form>
</div>
<div id="hiddenDiv" class="opac">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|