From 62c1da25fd913b223522de9fe20c61631e8d33cc Mon Sep 17 00:00:00 2001 From: Vikas Dadheech Date: Tue, 26 Feb 2019 16:54:59 +0530 Subject: [PATCH] Update unit test to use GMT +5:30 timezone --- .../BaseModels/NSDate+MSSerializationTests.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MSGraphClientModelsTests/BaseModels/NSDate+MSSerializationTests.m b/MSGraphClientModelsTests/BaseModels/NSDate+MSSerializationTests.m index ce9b15b5..0f65e7e4 100644 --- a/MSGraphClientModelsTests/BaseModels/NSDate+MSSerializationTests.m +++ b/MSGraphClientModelsTests/BaseModels/NSDate+MSSerializationTests.m @@ -23,7 +23,7 @@ - (void)setUp { self.dateComponents.hour = 16; self.dateComponents.minute = 39; self.dateComponents.second = 57; - self.dateComponents.timeZone = [NSTimeZone systemTimeZone]; + self.dateComponents.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:((5*60)+30)*60]; self.dateComponents.calendar = [NSCalendar currentCalendar]; }