Skip to content

Commit c1a5899

Browse files
[Outlook] (appointment) Fix method used to display time in the UTC format (#5433)
1 parent c030fe6 commit c1a5899

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/outlook/get-or-set-the-time-of-an-appointment.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Get or set the time when composing an appointment in Outlook
33
description: Learn how to get or set the start and end time of an appointment in an Outlook add-in.
4-
ms.date: 10/02/2025
4+
ms.date: 10/27/2025
55
ms.topic: how-to
66
ms.localizationpriority: medium
77
---
@@ -64,10 +64,11 @@ function getStartTime() {
6464
return;
6565
}
6666

67+
const startTime = asyncResult.value;
6768
// Display the start time in UTC format on the page.
68-
write(`The start time in UTC is: ${asyncResult.value.toString()}`);
69-
// Convert the start time to local time and display it on the page.
70-
write(`The start time in local time is: ${asyncResult.value.toLocaleString()}`);
69+
write(`The start time in UTC is: ${startTime.toUTCString()}`);
70+
// Display the start time in local time on the page.
71+
write(`The start time in local time is: ${startTime.toLocaleString()}`);
7172
});
7273
}
7374

0 commit comments

Comments
 (0)