Add day to class dates

This commit is contained in:
Tanner Collin 2023-08-01 01:30:24 +00:00
parent 1f381efab0
commit 3f76b59ede

View File

@ -24,8 +24,8 @@ function ClassTable(props) {
<Table.Row key={x.id} active={x.datetime < now || x.is_cancelled}> <Table.Row key={x.id} active={x.datetime < now || x.is_cancelled}>
<Table.Cell>{x.course_data.name}</Table.Cell> <Table.Cell>{x.course_data.name}</Table.Cell>
<Table.Cell> <Table.Cell>
Date: <Link to={'/classes/'+x.id}> <Link to={'/classes/'+x.id}>
{moment.utc(x.datetime).tz('America/Edmonton').format('ll')} {moment.utc(x.datetime).tz('America/Edmonton').format('ddd, ll')}
</Link> </Link>
<span style={{float: 'right'}}> <span style={{float: 'right'}}>
Time: {x.is_cancelled ? 'Cancelled' : moment.utc(x.datetime).tz('America/Edmonton').format('LT')} Time: {x.is_cancelled ? 'Cancelled' : moment.utc(x.datetime).tz('America/Edmonton').format('LT')}
@ -72,7 +72,7 @@ function ClassTable(props) {
<Table.Cell>&nbsp;{x.course_data.name}</Table.Cell> <Table.Cell>&nbsp;{x.course_data.name}</Table.Cell>
<Table.Cell> <Table.Cell>
<Link to={'/classes/'+x.id}> <Link to={'/classes/'+x.id}>
{moment.utc(x.datetime).tz('America/Edmonton').format('ll')} {moment.utc(x.datetime).tz('America/Edmonton').format('ddd, ll')}
</Link> </Link>
</Table.Cell> </Table.Cell>
<Table.Cell>{x.is_cancelled ? 'Cancelled' : moment.utc(x.datetime).tz('America/Edmonton').format('LT')}</Table.Cell> <Table.Cell>{x.is_cancelled ? 'Cancelled' : moment.utc(x.datetime).tz('America/Edmonton').format('LT')}</Table.Cell>