Skip to main content
Inspiring
July 26, 2019
Question

cfexchangecalendar changing timezone on recurring events

  • July 26, 2019
  • 12 replies
  • 1215 views

Hello,

I am not sure if this is a bug or if I am not using the tag correctly. The following occurs in ColdFusion 2018 release.

If I setup a new event with cfexchangecalendar, using the following event parameters, the timezone changes to (UTC+00:00) Monrovia, Reykjavik (and the event time is therefore incorrect):

<cfset local.event.Message = "Event Message">

<cfset local.event.Subject = "Event Subject">

<cfset local.event.AllDayEvent = "no">

<cfset local.event.StartTime = createDateTime(2019, 7, 26, 0, 0, 0)>

<cfset local.event.EndTime = createDateTime(2019, 7, 27, 0, 0, 0)>

<cfset local.event.IsRecurring = "yes">

<cfset local.event.RecurrenceType = "WEEKLY">

<cfset local.event.RecurrenceEndDate = createDateTime(2019, 12, 31, 0, 0, 0)>

<cfset local.event.RecurrenceDays = "MON">

Any assistance would be appreciated.

Thank you,

Robert

This topic has been closed for replies.

12 replies

Legend
August 19, 2019

We saw the same behavior on all events...not just recurring...after updating to CF2018.  Everything switched to UTC time.

Did you post a bug to Adobe?  I will vote it up, if so.

Inspiring
August 19, 2019

Yes, the bug post can be found here:

https://tracker.adobe.com/#/view/CF-4204933

BKBK
Community Expert
Community Expert
July 27, 2019

Does this help?

<cfset local.event.StartTime = dateConvert("utc2local", createDateTime(2019, 7, 26, 0, 0, 0))>

<cfset local.event.EndTime = dateConvert("utc2local", createDateTime(2019, 7, 27, 0, 0, 0))>

<cfset local.event.RecurrenceEndDate = dateConvert("utc2local", createDateTime(2019, 12, 31, 0, 0, 0))>

Inspiring
July 30, 2019

That was a really good suggestion, but unfortunately, the result is the same. The time gets changed to UTC 0 even though I pass all time events through the dateConvert "utc2local" function.

It is odd, because if I do not set a recurring event everything is ok. As soon as I specify that it is a recurring event, the times get changed.

BKBK
Community Expert
Community Expert
August 4, 2019

If the function dateConvert("utc2local", dateObj) isn't working as expected, then there is probably a bug. You should report it in Tracker

In the meantime, let's look for a workaround.