fix: use Ecuador timezone (GMT-5) for all date displays across the app
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useEffect, useState, useRef } from 'react';
|
||||
import { formatDisplayDate } from '@/lib/date';
|
||||
|
||||
interface Room {
|
||||
id: number;
|
||||
@@ -398,7 +399,7 @@ export default function RoomsPage() {
|
||||
{c.first_name}{c.last_initial ? ` ${c.last_initial}.` : ''}
|
||||
</strong>
|
||||
<span style={{ fontSize: '12px', color: '#777' }}>
|
||||
{new Date(c.created_at).toLocaleDateString()}
|
||||
{formatDisplayDate(c.created_at)}
|
||||
</span>
|
||||
</div>
|
||||
<p style={{ margin: 0, color: '#555', fontSize: '14px' }}>{c.text}</p>
|
||||
|
||||
Reference in New Issue
Block a user