question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UTC-6 Timezones being selected at random for Outlook -> Gcal transfers. Some DST some not.

See original GitHub issue

OGCS Version: v2.8.0 and 2.8.1-alpha Installed or Portable: Installed Windows Verson: 10 v1709 (64-bit) Outlook Version Outlook for Office 365 v1902 (64-bit)

Bug Description
OGCS appears to have an issue with the timezone: (UTC-06:00) Central Time (US & Canada)

It appears (US & Canada) is being read by the app as (US %2A Canada) And it doesn’t know what to do with that.

When I perform a full sync, outlook to google calendar, OGCS cannot detect the timezone of the Outlook calendar entry, so it defaults to the first available in the list with UTC of -6 (I am in USA Central time which has DST, but the randomly selected timezone doesn’t always utilize DST). This results in some of the calendar entries showing up in google calendar with the correct time and some an hour later as each is randomly assigned a UTC -6 timezone (some Guatamala, some Managua, and some Central Time - Chicago)

Steps to Reproduce the Issue
Install OGCS 2.8.0 or 2.8.1 Select default outlook calendar Auth google and select calendar Perform full sync Check OGcalsync log and search for timezone

OGcalsync error lines

log
2019-09-13 16:49:53,677 DEBUG  7 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] -  Processing >> 9/17/2019 10:00 AM => "Nope"
2019-09-13 16:49:53,709 DEBUG  7 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] -  Processing >> 9/13/2019 9:00 AM => "App - Continue discussion"
2019-09-13 16:49:53,730 DEBUG  7 OutlookGoogleCalendarSync.OutlookOgcs.OutlookNew [0] -  Retrieving the meeting organiser's timezone ID.
2019-09-13 16:49:53,730 WARN  7 OutlookGoogleCalendarSync.OutlookOgcs.OutlookNew [0] -  Could not find timezone ID based on given description. Attempting some fuzzy logic...
2019-09-13 16:49:53,731 DEBUG  7 OutlookGoogleCalendarSync.NotificationTray [0] -  Found a UTC timezone offset of -6
2019-09-13 16:49:53,731 WARN  7 OutlookGoogleCalendarSync.OutlookOgcs.OutlookNew [0] -  Could not find timezone with GMT offset of -6 for country (UTC-06:00) Central Time (US %2A Canada). Picking the first offset match regardless of country.
2019-09-13 16:49:53,920 DEBUG  7 OutlookGoogleCalendarSync.Console [0] -  9/13/2019 9:00 AM  "App - Continue discussion"
2019-09-13 16:49:53,921 DEBUG  7 OutlookGoogleCalendarSync.Console [0] -  AttributeChangeStart TimezoneAmerica/Managua → America/GuatemalaEnd TimezoneAmerica/Managua → America/GuatemalaAttendee added{redacted attendees added}
2019-09-13 16:49:53,990 DEBUG  7 OutlookGoogleCalendarSync.Console [0] -  7 attributes updated.
2019-09-13 16:49:54,562 DEBUG  7 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] -  Processing >> 9/12/2019 3:00 PM => "OoO"
2019-09-13 16:49:54,589 DEBUG  7 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] -  Processing >> 9/11/2019 1:30 PM (R) => "Canceled: CR/DO Sync meeting"
2019-09-13 16:49:54,590 DEBUG  7 OutlookGoogleCalendarSync.Recurrence [0] -  Creating Google iCalendar definition for recurring event.
2019-09-13 16:49:54,604 DEBUG  7 OutlookGoogleCalendarSync.Recurrence [0] -  RRULE:FREQ=WEEKLY;UNTIL=20200304T133000Z
2019-09-13 16:49:54,625 DEBUG  7 OutlookGoogleCalendarSync.OutlookOgcs.OutlookNew [0] -  Retrieving the meeting organiser's timezone ID.
2019-09-13 16:49:54,625 WARN  7 OutlookGoogleCalendarSync.OutlookOgcs.OutlookNew [0] -  Could not find timezone ID based on given description. Attempting some fuzzy logic...
2019-09-13 16:49:54,626 DEBUG  7 OutlookGoogleCalendarSync.NotificationTray [0] -  Found a UTC timezone offset of -6
2019-09-13 16:49:54,626 WARN  7 OutlookGoogleCalendarSync.OutlookOgcs.OutlookNew [0] -  Could not find timezone with GMT offset of -6 for country (UTC-06:00) Central Time (US %2A Canada). Picking the first offset match regardless of country.
2019-09-13 16:49:55,403 DEBUG  7 OutlookGoogleCalendarSync.Console [0] -  9/11/2019 1:30 PM   "Canceled: CR/DO Sync meeting"
2019-09-13 16:49:55,404 DEBUG  7 OutlookGoogleCalendarSync.Console [0] -  AttributeChangeRecurrenceRRULE:FREQ=WEEKLY;UNTIL=20200304T193000Z → RRULE:FREQ=WEEKLY;UNTIL=20200304T133000ZAttendee added{redacted attendees added}
2019-09-13 16:49:55,456 DEBUG  7 OutlookGoogleCalendarSync.Console [0] -  16 attributes updated.
2019-09-13 16:49:56,871 DEBUG  7 OutlookGoogleCalendarSync.Recurrence [0] -  9/11/2019 1:30 PM (R) => "Canceled: CR/DO Sync meeting"
2019-09-13 16:49:56,872 DEBUG  7 OutlookGoogleCalendarSync.Recurrence [0] -  This is a recurring appointment with 1 exceptions that will now be iteratively compared.

Enhancement checklist by @phw198

  • Create XML file to persist custom timezone mappings
  • GUI to administrate custom mappings
  • During fuzzy logic stage, populate GUI + user confirmation
  • In-memory dictionary of existing mappings for use during sync

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
BrandonGriffiscommented, Jan 2, 2020

The prompt/select fix works great. 😃 Thank you. (Sorry for not responding sooner).

1reaction
X-darkcommented, Dec 11, 2019

Good for me. Just a quick note, once I selected a correspondence for a given timezone, I got a second line with a blank time zone. I gave him the same correspondence and it worked fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How time zone normalization works - Outlook
On the attendee's computer, Outlook converts UTC to the local computer time by using the Windows current time zone settings. Local start time...
Read more >
Shared Outlook calendar shows wrong timezone in Google ...
Open Google Calendar on your computer. 2) On the left side of the screen, click on the three horizontal lines to open the...
Read more >
Subscribe by URL not importing to correct timezone
Hi, it's normal that the calendar settings display the timezone as UTC because Outlook/Office365 (and Google for that matter) store all event ...
Read more >
Re: Time Zone Missmatch
In my Outlook client (Version 2111, Build 14701.20262), under Options, Calendar, Time Zones, the time zone is Pacific, UTC-8. The meetings are displayed...
Read more >
the of and to a in for is on s that by this with i you it not
the of and to a in for is on s that by this with i you it not or be are from ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found