From 083f1b18e23b108b085afab57674691bcc48e3cd Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Tue, 13 Jun 2023 00:14:29 +0530 Subject: [PATCH] Fix time format for M365DateTimeTimeZone (#3577) This was only used in tests and so should not affect any code, but let's fix it. --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [ ] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [ ] :muscle: Manual - [x] :zap: Unit test - [ ] :green_heart: E2E --- src/internal/common/dttm/dttm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/common/dttm/dttm.go b/src/internal/common/dttm/dttm.go index ae9e084c5..d91f7596c 100644 --- a/src/internal/common/dttm/dttm.go +++ b/src/internal/common/dttm/dttm.go @@ -41,7 +41,7 @@ const ( // M365dateTimeTimeZoneTimeFormat is the format used by M365 for datetimetimezone resource // https://learn.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-1.0 - M365DateTimeTimeZone TimeFormat = "2006-01-02T15:04:05.000000" + M365DateTimeTimeZone TimeFormat = "2006-01-02T15:04:05.0000000" ) // these regexes are used to extract time formats from strings. Their primary purpose is to