diff --git a/client/src/gql/graphql.ts b/client/src/gql/graphql.ts index dfd28b51..01d37515 100644 --- a/client/src/gql/graphql.ts +++ b/client/src/gql/graphql.ts @@ -810,7 +810,7 @@ export type PresenceRecordStatisticsType = { circle_id: Scalars['ID']['output']; course_session_id: Scalars['ID']['output']; details_url: Scalars['String']['output']; - due_date: Scalars['String']['output']; + due_date: Scalars['DateTime']['output']; generation: Scalars['String']['output']; participants_present: Scalars['Int']['output']; participants_total: Scalars['Int']['output']; diff --git a/client/src/gql/schema.graphql b/client/src/gql/schema.graphql index 0bb09f4a..12b0bdf4 100644 --- a/client/src/gql/schema.graphql +++ b/client/src/gql/schema.graphql @@ -72,12 +72,19 @@ type PresenceRecordStatisticsType { course_session_id: ID! generation: String! circle_id: ID! - due_date: String! + due_date: DateTime! participants_present: Int! participants_total: Int! details_url: String! } +""" +The `DateTime` scalar type represents a DateTime +value as specified by +[iso8601](https://en.wikipedia.org/wiki/ISO_8601). +""" +scalar DateTime + type AttendanceSummaryStatisticsType { _id: ID! days_completed: Int! @@ -126,13 +133,6 @@ type AssignmentStatisticsRecordType { details_url: String! } -""" -The `DateTime` scalar type represents a DateTime -value as specified by -[iso8601](https://en.wikipedia.org/wiki/ISO_8601). -""" -scalar DateTime - type AssignmentCompletionMetricsType { _id: ID! passed_count: Int! diff --git a/client/src/pages/dashboard/statistic/AttendanceList.vue b/client/src/pages/dashboard/statistic/AttendanceList.vue index 96b65839..89846c32 100644 --- a/client/src/pages/dashboard/statistic/AttendanceList.vue +++ b/client/src/pages/dashboard/statistic/AttendanceList.vue @@ -6,6 +6,8 @@ import type { CourseStatisticsType, PresenceRecordStatisticsType } from "@/gql/g import StatisticFilterList from "@/components/dashboard/StatisticFilterList.vue"; import ItProgress from "@/components/ui/ItProgress.vue"; import { useCourseStatistics } from "@/composables"; +import { getDateString } from "@/components/dueDates/dueDatesUtils"; +import dayjs from "dayjs"; const dashboardStore = useDashboardStore(); @@ -55,7 +57,9 @@ const attendanceStats = (present: number, total: number) => {