Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 91... Línea 91...
91
            // Return the general section.
91
            // Return the general section.
92
            return get_string('section0name', 'format_weeks');
92
            return get_string('section0name', 'format_weeks');
93
        } else {
93
        } else {
94
            $dates = $this->get_section_dates($section);
94
            $dates = $this->get_section_dates($section);
Línea 95... Línea 95...
95
 
95
 
-
 
96
            // Find the prior day for display purposes.
-
 
97
            $enddate = new DateTime();
-
 
98
            $enddate->setTimezone(core_date::get_user_timezone_object());
-
 
99
            $enddate->setTimestamp(intval($dates->end));
96
            // We subtract 24 hours for display purposes.
100
            $enddate->modify('-1 day');
Línea 97... Línea 101...
97
            $dates->end = ($dates->end - 86400);
101
            $dates->end = $enddate->getTimestamp();
98
 
102
 
99
            $dateformat = get_string('strftimedateshort');
103
            $dateformat = get_string('strftimedateshort');
100
            $weekday = userdate($dates->start, $dateformat);
104
            $weekday = userdate($dates->start, $dateformat);