revert: include time in document created

This commit is contained in:
Ephraim Atta-Duncan
2023-07-05 20:49:20 +00:00
parent f61bf00702
commit a5b3969f56

View File

@@ -10,7 +10,7 @@ export const LocaleDate = ({ className, date, ...props }: LocaleDateProps) => {
const [localeDate, setLocaleDate] = useState(() => new Date(date).toISOString());
useEffect(() => {
setLocaleDate(new Date(date).toLocaleDateString());
setLocaleDate(new Date(date).toLocaleString());
}, [date]);
return (