From 1e6861db5ea10f09a0fa5112bda4a243c8afc34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janis=20Daniel=20Da=CC=88hne?= <janis.daehne@informatik.uni-halle.de> Date: Wed, 12 Mar 2025 10:48:34 +0100 Subject: [PATCH] - group view now shows the id - release date fixed typing --- src/components/sites/singleGroupSite/singleGroupSite.tsx | 2 +- src/constants.ts | 2 +- src/helpers/jsonTransformer.ts | 2 +- src/types/exerciseRelease.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/sites/singleGroupSite/singleGroupSite.tsx b/src/components/sites/singleGroupSite/singleGroupSite.tsx index 22143346..b0ac8d92 100644 --- a/src/components/sites/singleGroupSite/singleGroupSite.tsx +++ b/src/components/sites/singleGroupSite/singleGroupSite.tsx @@ -118,7 +118,7 @@ class SingleGroupSite extends React.Component<Props & RouteComponentProps<Matche <h1 className="clear-margin"> { this.props.group && - this.props.group.displayName + this.props.group.displayName + ` (id: ${this.props.group.id})` } </h1> diff --git a/src/constants.ts b/src/constants.ts index b20edfcf..3c8c840c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -13,7 +13,7 @@ import Logger from './helpers/logger' * y - breaking changes / new features * z - fixes, small changes */ -export const versionString = '2.19.4' +export const versionString = '2.19.5' export const supportMail = 'yapex@informatik.uni-halle.de' diff --git a/src/helpers/jsonTransformer.ts b/src/helpers/jsonTransformer.ts index a0e3e9b1..676403c4 100644 --- a/src/helpers/jsonTransformer.ts +++ b/src/helpers/jsonTransformer.ts @@ -76,7 +76,7 @@ const reMsAjax = /^\/Date\((d|-|.*)\)[\/|\\]$/ const reWithoutMs = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z?$/ /** - * same as dateTimeReviver but converts the time to local time (was gtm +2) + * same as dateTimeReviver but converts the (server) time to local time (add utc offset) * @param key * @param value * @returns {any} diff --git a/src/types/exerciseRelease.ts b/src/types/exerciseRelease.ts index 002c4b4a..f28405a4 100644 --- a/src/types/exerciseRelease.ts +++ b/src/types/exerciseRelease.ts @@ -195,9 +195,9 @@ export interface ExerciseReleaseForBackend extends ExerciseReleaseBase { /** * the automatic starting date time (if the release type is automatic) */ - readonly automaticStartAt?: Date + readonly automaticStartAt?: Date | null /** * the automatic ending date time (if the release type is automatic) */ - readonly automaticEndAt?: Date + readonly automaticEndAt?: Date | null } -- GitLab