Skip to content

Commit 03b2428

Browse files
hlong24082khlong24082k
andauthored
fix: change time now to correct created and updated time (dyad-sh#1703)
<!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fix incorrect "Created" and "Last Updated" timestamps in App Details. The page now uses selectedApp.createdAt and selectedApp.updatedAt instead of the current time. <sup>Written for commit 4b2459b. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> Co-authored-by: hlong24082k <[email protected]>
1 parent 4cef36a commit 03b2428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/app-details.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,13 @@ export default function AppDetailsPage() {
299299
<span className="block text-gray-500 dark:text-gray-400 mb-0.5 text-xs">
300300
Created
301301
</span>
302-
<span>{new Date().toLocaleString()}</span>
302+
<span>{selectedApp.createdAt.toString()}</span>
303303
</div>
304304
<div>
305305
<span className="block text-gray-500 dark:text-gray-400 mb-0.5 text-xs">
306306
Last Updated
307307
</span>
308-
<span>{new Date().toLocaleString()}</span>
308+
<span>{selectedApp.updatedAt.toString()}</span>
309309
</div>
310310
<div className="col-span-2">
311311
<span className="block text-gray-500 dark:text-gray-400 mb-0.5 text-xs">

0 commit comments

Comments
 (0)