Skip to content

Commit

Permalink
Issue #PS-1625 chore: comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
suvarnakale committed Aug 26, 2024
1 parent ed900a3 commit a249f1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const eventDaysLimit: number = 7;
export const toastAutoHideDuration: number = 5000; // 5 seconds
export const tenantId: string = 'ef99949b-7f3a-4a5f-806a-e67e683e38f3';
export const idealTimeForSession: string = '120';
export const timeZone: string = 'Asia/Kolkata';
export const dropoutReasons = [
{
label: 'UNABLE_TO_COPE_WITH_STUDIES',
Expand Down
5 changes: 3 additions & 2 deletions src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import {
DaysOfWeek,
eventDaysLimit,
idealTimeForSession,
timeZone,
} from '../../app.config';
import SessionMode from './SessionMode';
import { showToastMessage } from './Toastify';
Expand Down Expand Up @@ -152,8 +153,8 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
const startDateTime = eventData?.startDateTime;
const endDateTime = eventData?.endDateTime;

const localStartDateTime = dayjs.utc(startDateTime).tz('Asia/Kolkata');
const localEndDateTime = dayjs.utc(endDateTime).tz('Asia/Kolkata');
const localStartDateTime = dayjs.utc(startDateTime).tz(timeZone);
const localEndDateTime = dayjs.utc(endDateTime).tz(timeZone);
// const localEndDateValue = dayjs.utc(endDateValue).tz('Asia/Kolkata');

setStartDate(localStartDateTime.startOf('day'));
Expand Down

0 comments on commit a249f1e

Please sign in to comment.