Skip to content

Commit bfeac5d

Browse files
fix: 🐛 Submission timestamp parse fix
Closes: #123
1 parent 10805c1 commit bfeac5d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/dashboard/page.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ export default function Dashboard() {
203203
{submission.title}
204204
</p>
205205
<p className="text-xs text-gray-500 mt-1">
206-
{new Date(submission.timestamp).toDateString()}
207-
{/* TODO: Fix the submission timestamp */}
206+
{new Date(Number(submission.timestamp) * 1000).toISOString().split("T")[0]}
208207
</p>
209208
</div>
210209
<CheckCircle className="w-5 h-5 text-green-500 ml-4" />

0 commit comments

Comments
 (0)