SharePoint Fix with Calendar/Event Dates and Daylight Savings Time

6Yesterday I was overhauling our Magni Mobile calendar view into a list view.  I ran into an issue where SharePoint was pre-adjusting events events occurring during Daylight Savings Time – apparently because we are not currently in DST.  It was a huge headache, but I came up with a solution to analyze the UTC offset via moment.js and then “undo” the adjustments SharePoint made to the datetime on these events.

I still need to do more robust testing before I’m 100% comfortable with this solution but for now it’s fixing the all-day events that were getting screwed up by SharePoint’s adjustments.