phw198 / OutlookGoogleCalendarSync

Sync your Outlook and Google calendars
https://www.outlookgooglecalendarsync.com/
Mozilla Public License 2.0
1.83k stars 217 forks source link

New Outlook: The UTC time represented after applying the offset must be between years 0 and 10000. #1978

Open thedude911 opened 1 month ago

thedude911 commented 1 month ago

OGCS Version: v3.0.0.6
Edition: Portable
Sync Direction: O<->G

Bug Description
I successfilly used OGCS in the past, now I changed to the new Outlook and try to make it work. To be clear: I start the application with the recommended command line and the settings.xml was fresh from the start.

The first phase seems to work but when it starts to compare Google calendar entries, I get an error:

image

My Google calendar is at GMT+2, which is also the entry which caused the error. When I ignore the error I also get the same error from all remaining Google calendar entries.

Any other information

2024-09-22 07:12:34,612 INFO  7 OutlookGoogleCalendarSync.Console [366] -  Comparing 11 existing Google calendar entries
2024-09-22 07:12:35,063 ERROR  7 OutlookGoogleCalendarSync.Console [362] -  Event update failed.
2024-09-22 07:12:35,341 ERROR  7 OutlookGoogleCalendarSync.Exception [35] -  System.ArgumentOutOfRangeException: Die nach dem Anwenden des Offsets dargestellte UTC-Zeit muss zwischen den Jahren 0 und 10000 liegen.
Parametername: offset
2024-09-22 07:12:35,348 ERROR  7 OutlookGoogleCalendarSync.Exception [22] -  Code: 0x80131502,-2146233086; Location: ValidateDate() in UpdateCalendarEntry() at offset 905 in GoogleCalendar.cs:791:29
2024-09-22 07:12:35,350 ERROR  7 OutlookGoogleCalendarSync.Exception [66] -     bei System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
   bei System.DateTimeOffset..ctor(DateTime dateTime)
   bei System.DateTimeOffset.op_Implicit(DateTime dateTime)
   bei OutlookGoogleCalendarSync.Google.Graph.Calendar.UpdateCalendarEntry(Event ai, Event ev, Int32& itemModified, Boolean forceCompare) in C:\Users\Paul\Git\OutlookGoogleCalendarSync\src\OutlookGoogleCalendarSync\Google.Graph\GoogleCalendar.cs:Zeile 791.
   bei OutlookGoogleCalendarSync.Google.Graph.Calendar.UpdateCalendarEntries(Dictionary`2 entriesToBeCompared, Int32& entriesUpdated) in C:\Users\Paul\Git\OutlookGoogleCalendarSync\src\OutlookGoogleCalendarSync\Google.Graph\GoogleCalendar.cs:Zeile 717.
2024-09-22 07:12:35,351 DEBUG  7 OutlookGoogleCalendarSync.Extensions.MessageBox [75] -  Sync item failed: Google event update failed. Continue with synchronisation?
github-actions[bot] commented 1 week ago

This issue has been marked dormant because the last update is at least 30 days ago. If no update is made with the next 7 days, the issue will be closed.