Skip to content

Commit f96789c

Browse files
committed
chore: add timezone to birthday of participant
1 parent b59d1ca commit f96789c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/sour-dingos-visit.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@quassel/frontend": patch
3+
"@quassel/backend": patch
4+
---
5+
6+
Add timezone to birthday of participant

apps/backend/mikro-orm.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { HttpException, HttpStatus } from "@nestjs/common";
88
const c = configuration();
99

1010
export default defineConfig({
11-
timezone: "+00:00",
1211
entities: ["./**/*.entity.js"],
1312
entitiesTs: ["./**/*.entity.ts"],
1413
host: c.database.host,

apps/frontend/src/routes/_auth/administration/participants/new.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function AdministrationParticipantsNew() {
2020
},
2121
});
2222
const handleSubmit = (values: FormValues) => {
23-
createParticipantMutation.mutate({ body: values });
23+
createParticipantMutation.mutate({ body: { ...values, birthday: values.birthday && `${values.birthday}T00:00:00Z` } });
2424
};
2525

2626
return (

0 commit comments

Comments
 (0)