Skip to content

Commit

Permalink
Merge pull request #203 from hussaino03/develop
Browse files Browse the repository at this point in the history
controllers
  • Loading branch information
hussaino03 authored Dec 27, 2024
2 parents 58ab440 + c587230 commit 9af1300
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/controllers/ai/ai.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ async function getUserStats(userId) {
return {
title: task.title || task.name || 'Untitled Task',
experience: task.experience || 0,
completedAt: new Date(task.completedAt).toLocaleDateString(),
completedAt: new Date(task.completedAt).toLocaleString('en-US', {
dateStyle: 'medium',
timeStyle: 'short'
}),
deadline: task.deadline
? new Date(task.deadline).toLocaleDateString()
: 'No deadline',
Expand Down

0 comments on commit 9af1300

Please sign in to comment.