Skip to content

Commit 503b983

Browse files
Merge pull request #305 from microsoft/macae-bug-fixes-2.0
fix: Bug fix # 20359
2 parents 560a356 + 7a68739 commit 503b983

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/frontend/src/services/TaskService.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export class TaskService {
3131
completed_steps: plan.completed,
3232
total_steps: plan.total_steps,
3333
status: apiService.isPlanComplete(plan) ? "completed" : "inprogress",
34-
date: formatDate(plan.timestamp),
34+
date: new Intl.DateTimeFormat(undefined, {
35+
dateStyle: "long",
36+
// timeStyle: "short",
37+
}).format(new Date(plan.timestamp)),
3538
};
3639

3740
// Categorize based on plan status and completion
@@ -98,8 +101,8 @@ export class TaskService {
98101
*/
99102
static generateSessionId(): string {
100103
const timestamp = new Date().getTime();
101-
const random = Math.floor(Math.random() * 10000);
102-
return `sid_${timestamp}_${random}`;
104+
const random = Math.floor(Math.random() * 10000);
105+
return `sid_${timestamp}_${random}`;
103106
}
104107
/**
105108
* Split subtask action into description and function/details parts

0 commit comments

Comments
 (0)