juanferrub/liferay-portal — pull request #308 by KocsisDaniel (2012-10-17 15:00:35+00:00)
Title: [TECH-SUPPORT] LPS-30544

Hey Juan,

I heard you are the calendar expert so I would like to send this pr to you, because I would like to make sure it won't cause any future issues. The problem is when you create all day events and the system timezone is different then UTC, the events are displayed a day ahead of their actual date. This is because on the getEntries query we use the TimeZoneUtil.getTimeZone(StringPool.UTC) time instead of the system default, what we use when saving these events so I think it makes sense to change the timezone to the TimeZoneUtil.getDefault() value here as well.

But I found an old ticket (LPS-18370) where the fix did the opposite change (default->UTC) on a few places including this one. We tested the current fix with the old use case and we couldn't reproduce the old issue. I think the change on the getEntries method was not necessary because we use the getRepeatingEvents() to get repeating entries and based on the LPS-18370 the original problem was that.

To make sure We considered everything and the fix is really safe I would like to ask your opinion as well!

Thanks,
Daniel