diff --git a/app/AuthContext.tsx b/services/AuthContext.tsx
similarity index 97%
rename from app/AuthContext.tsx
rename to services/AuthContext.tsx
index 9271931..9607de3 100644
--- a/app/AuthContext.tsx
+++ b/services/AuthContext.tsx
@@ -3,7 +3,7 @@
import React, { createContext, useContext, useState, useEffect } from 'react';
import { verifyToken } from '@/services/validation';
import { useRouter } from 'next/navigation';
-import { AuthContextProps } from './types';
+import { AuthContextProps } from '../app/types';
import { api } from '@/services/url';
const AuthContext = createContext
(undefined);
diff --git a/services/url.tsx b/services/url.ts
similarity index 100%
rename from services/url.tsx
rename to services/url.ts
diff --git a/services/validation.tsx b/services/validation.ts
similarity index 100%
rename from services/validation.tsx
rename to services/validation.ts
diff --git a/utils/dateUtils.ts b/utils/dateUtils.ts
new file mode 100644
index 0000000..b229da5
--- /dev/null
+++ b/utils/dateUtils.ts
@@ -0,0 +1,15 @@
+export function isSameDay(date1: Date, date2: Date): boolean {
+ return (
+ date1.getDate() === date2.getDate() &&
+ date1.getMonth() === date2.getMonth() &&
+ date1.getFullYear() === date2.getFullYear()
+ );
+}
+
+
+export function formatTime(dateTimeStr: string) {
+ const date = new Date(dateTimeStr);
+ const hours = String(date.getUTCHours()).padStart(2, "0");
+ const minutes = String(date.getUTCMinutes()).padStart(2, "0");
+ return `${hours}:${minutes}`;
+}