The functionality of using a UserCustomField timezone for this plugin has been deprecated for the past few months and existing timezone custom fields have been migrated to the replacement, UserOption.timezone.
* using custom_fields instead of post_custom_fields triggers
a query for the custom field on every post in the topic.
change the include_group_timezones to use post_custom_fields
instead which queries every post for the topic on topic view
load
- Render all-day events from 6am to 6pm local time, so that they appear more logically for users in other timezones
- Set the `nextDayThreshold` to 6am, so that multi-day events in slightly more easterly timezones display the end date correctly
* Make sure plugin works with user_options.timezone AND original custom field
* We will show a deprecation warning in the hbs template if the UserOption.timezone is present in core to ensure people upgrade the plugin.
Add a new job that is scheduled twice daily to ensure the consistency of the calendar topic.
In some rare cases, like when a post is moved, the calendar is not properly updated.
Since reacting to a post being moved is hard (we don't have the information of the previous topics),
this job will ensure that the events of each posts in the calendar topic are up to date.
- FIX: update_holiday_usernames wasn't deleting "on_holiday" user custom fields
when no users were on holiday
- FIX: flair wasn't working on mentions when using subfolder
- PERF: only decorateCooked and addPosterIcon if there's at least one user on holiday
- Migration to remove duplicate "on_holiday" user custom fields
- Add unique index for the "on_holiday" user custom field
- Localize the "On Holiday" title
- Add the boolean type to the "on_holiday" user custom field
The 'EnsureExpiredEventDestruction' is now only deleting events in topics with
a [calendar].
REFACTOR: Remove all *_INDEX constants
REFACTOR: UpdateHolidayUsernames job
PERF: Use already cooked version of the post instead of over-cooking it
PERF: Only serialize 'calendar_details' on first post