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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s