Skip to content

Commit

Permalink
Merge pull request #253 from wyeworks/fix-session
Browse files Browse the repository at this point in the history
fix date in session
  • Loading branch information
santimintegui authored Nov 11, 2023
2 parents 3aec20d + 8fbd0ab commit 3140ce0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export default function Sessions({ group, fetchGroup }: SessionsProps) {

try {
const Today = new Date();
const [year, month, day] = formData.endTime.split('-');
const [hour, min] = formData.endHour.split(':');
const [year, month, day] = formData.startTime.split('-');
const [hour, min] = formData.startHour.split(':');
const sessionDate = new Date(
Number(year),
Number(month) - 1,
Expand Down

0 comments on commit 3140ce0

Please sign in to comment.