Skip to content

Commit d763f5d

Browse files
committed
fix: pseudo slot time specified by the cario timezone.
1 parent 67f2f43 commit d763f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/server/src/lib/availabilitySlot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function generatePseudoSlots(
260260
tutorIds: number[]
261261
): Paginated<IAvailabilitySlot.Self> {
262262
const list: IAvailabilitySlot.Self[] = [];
263-
const currentDay = dayjs().startOf("day");
263+
const currentDay = dayjs().tz("Africa/Cairo").startOf("day");
264264

265265
const p1 = (dayStart: Dayjs) => ({
266266
start: dayStart.add(9, "hours").toISOString(),

0 commit comments

Comments
 (0)