@@ -241,7 +241,7 @@ public void AppointmentCreateAllDay()
241
241
LoginResult result = client . Login ( Configuration . LoginUser , Configuration . LoginPass ) ;
242
242
if ( result . IsAuthorized )
243
243
{
244
- DateTime baseValue = new DateTime ( DateTime . Now . Year , DateTime . Now . Month , DateTime . Now . Day , 22 , 0 , 0 , DateTimeKind . Utc ) . AddDays ( - 1 ) ;
244
+ DateTime baseValue = new DateTime ( DateTime . Now . Year , DateTime . Now . Month , DateTime . Now . Day , 0 , 0 , 0 , DateTimeKind . Utc ) . AddDays ( - 1 ) ;
245
245
AppointmentCreateResult appointmentCreateResult = client . AppointmentCreate ( EventType . AllDay , Configuration . UserId , baseValue , baseValue . AddDays ( 1 ) , "UnitTest123" ) ;
246
246
Assert . AreEqual ( "OK" , appointmentCreateResult . AppointmentCreate . Status ) ;
247
247
Thread . Sleep ( 1000 ) ;
@@ -255,8 +255,8 @@ public void AppointmentCreateAllDay()
255
255
found = true ;
256
256
Assert . AreEqual ( "UnitTest123 [by OnTime ApiExplorer]" , item . Subject ) ;
257
257
Assert . AreEqual ( EventType . AllDay , item . ApptType ) ;
258
- Assert . AreEqual ( new DateTime ( DateTime . Now . Year , DateTime . Now . Month , DateTime . Now . Day , 0 , 0 , 0 , DateTimeKind . Local ) , item . StartDT ) ;
259
- Assert . AreEqual ( new DateTime ( DateTime . Now . Year , DateTime . Now . Month , DateTime . Now . Day , 22 , 0 , 0 , DateTimeKind . Utc ) . AddDays ( - 1 ) , item . StartDT . ToUniversalTime ( ) ) ;
258
+ // Assert.AreEqual(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0, DateTimeKind.Local), item.StartDT);
259
+ Assert . AreEqual ( new DateTime ( DateTime . Now . Year , DateTime . Now . Month , DateTime . Now . Day , 0 , 0 , 0 , DateTimeKind . Utc ) . AddDays ( - 1 ) , item . StartDT . ToUniversalTime ( ) ) ;
260
260
}
261
261
}
262
262
Assert . AreEqual ( true , found , "AllDay event not found" ) ;
0 commit comments