Karan6124 commited on
Commit
23964d5
·
1 Parent(s): 5b71199

fix(workspace): format timestamps in user local timezone

Browse files
frontend/src/sections/WorkspaceSection.jsx CHANGED
@@ -228,7 +228,7 @@ export default function WorkspaceSection({ onBackToLanding }) {
228
 
229
  <div className="flex items-center justify-between w-full">
230
  <span className="text-[10px] text-white/40 font-light font-body">
231
- {c.updated_at ? new Date(c.updated_at).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) : "Just now"}
232
  </span>
233
 
234
  <span
 
228
 
229
  <div className="flex items-center justify-between w-full">
230
  <span className="text-[10px] text-white/40 font-light font-body">
231
+ {c.updated_at ? new Date(c.updated_at.endsWith("Z") ? c.updated_at : c.updated_at + "Z").toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) : "Just now"}
232
  </span>
233
 
234
  <span