Skip to content

Commit

Permalink
add time to course lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
c2d13p committed Oct 30, 2024
1 parent 763d602 commit 563edcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widgets/src/components/CourseList.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import remarkMath from 'remark-math'
import axios from 'axios'
import Accordion from './Accordion';
import { Loading } from './Loading'
import { formatAffiliations, formatDate, getManageURL, getDMURL } from '../utils'
import { formatAffiliations, formatDate, formatTime, getManageURL, getDMURL } from '../utils'

export function CourseList({ from, to }) {
if (from === undefined || to === undefined) {
Expand Down Expand Up @@ -87,7 +87,7 @@ export function CourseList({ from, to }) {
<ul>
{course.lessons.map((lesson, index) => (
<li key={index}>
{formatDate(lesson.date, 'en-US')} ({lesson.duration} minutes), {lesson.conferenceRoom}
{formatDate(lesson.date, 'en-US')}, {formatTime(lesson.date)} ({lesson.duration} minutes), {lesson.conferenceRoom}
</li>
))}
</ul>
Expand Down

0 comments on commit 563edcc

Please sign in to comment.