diff --git a/routes/notification.tsx b/routes/notification.tsx index 2cbd188..01af2ba 100644 --- a/routes/notification.tsx +++ b/routes/notification.tsx @@ -13,12 +13,12 @@ export default defineRoute(async (req, _ctx) => { }); } const notifications = await selectNotificationsWithUpdate(session.user.id); - let locale: Intl.Locale; - try { - locale = new Intl.Locale(req.headers.get("accept-language")?.split(",").at(0) ?? "en"); - } catch (error) { - locale = new Intl.Locale("en"); - } + // let locale: Intl.Locale; + // try { + // locale = new Intl.Locale(req.headers.get("accept-language")?.split(",").at(0) ?? "en"); + // } catch (error) { + // locale = new Intl.Locale("en"); + // } return ( <> @@ -29,7 +29,7 @@ export default defineRoute(async (req, _ctx) => {

Notification

{notifications.map(notification =>
- {new Date(notification.created_at).toLocaleString(locale)} + {new Date(notification.created_at).toISOString()} {notification.type === "follow" && {notification.action_user?.name} followed you. } {notification.type === "like" && {notification.action_user?.name} liked your post.