We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd06fe2 commit 41de8c4Copy full SHA for 41de8c4
packages/mgt-components/src/components/mgt-agenda/mgt-agenda.ts
@@ -617,15 +617,6 @@ export class MgtAgenda extends MgtTemplatedComponent {
617
}
618
619
private prettyPrintTimeFromDateTime(date: Date) {
620
- // If a preferred time zone was sent in the Graph request
621
- // times are already set correctly. Do not adjust
622
- if (!this.preferredTimezone) {
623
- // If no preferred time zone was specified, the times are in UTC
624
- // fall back to old behavior and adjust the times to the browser's
625
- // time zone
626
- date.setMinutes(date.getMinutes() - date.getTimezoneOffset());
627
- }
628
-
629
let hours = date.getHours();
630
const minutes = date.getMinutes();
631
const ampm = hours >= 12 ? 'PM' : 'AM';
0 commit comments