Events Plugin šŸ“†

Thanks for going into detail @gwmngilfen, itā€™s very useful. As you say, this is a question of getting the display right. Iā€™ll look at your use case either tomorrow or the day after.


This is fixed. cc @Francois_Douville

2 Likes

iCal Feed

The ical feed should now be fully timezone aware.

Picking the timezone to display an event in

I donā€™t think this assumption holds for every case.

Iā€™ve made the use of event timezones to display events a setting: events timezone event (default on).

The updated timezone display logic is now:

  1. Start with the userā€™s timezone

  2. If there is a default timezone set use that instead.

  3. If there is an event timezone and the setting events timezone event is on, use the event timezone.

So, in your case turn the setting events timezone event off.

Note that regardless of the setting, in the composer and the add event modal, the event timezone (if one exists) will always be used.

4 Likes

Seems to work just fine. I use the feature on my forum with no issues.

3 Likes

Thanks for the fast turnaround @angus, excellent support as ever.

However, this seems to have forced all events to the calendar timezone, rather than the user viewing the calendar. Setting that flag to off makes the calendar look right for me (as Iā€™m the admin, I have the same timezone as the forum), but if I impersonate a user in another timezone (or just change the timezone on my laptop), the event is still wrong (although at least theyā€™re all consistently wrong now :stuck_out_tongue:) - the event shows at 15:00 even for a user in the GMT-5 timezone.

What I was hoping for is to display events in the users timezone - is that possible, or going to cause mayhem? I donā€™t see a timezone setting under a userā€™s prefs, so I guess itā€™d have to be the browser environment?

1 Like

Hi @angus,

I hope you are well, thanks for the great plugin developpment. Just this little bug is that since 2 days the currently Upgrading status is not moving. I cannot stop it. Any idea ?

Many thanks

1 Like

Sounds like youā€™re talking about events timezone default?

If you have that set, it will override the localisation to the userā€™s timezone:

In other words, if both events timezone default and events timezone event are disabled, the event will be localised according to the timezone of the user.

Hereā€™s an example from my sandbox:


hm. I havenā€™t come across this issue before. I upgrade my sandbox via docker/upgrade each time I push updates for this plugin. It could be an issue unrelated to the events plugin, but letā€™s assume it is for now.

Do you see anything at https://yoursite.com/admin/upgrade#/upgrade/discourse_events?

Are you able to ssh into your server and rebuild the container?

1 Like

Thatā€™s where Iā€™m going wrong. Seems to be working now - thanks!

2 Likes

Iā€™m having problems getting events created in other categories to also appear in the events category.
Should they sync this way so that an event can relate to a particular category, but also be found in a collective events category that covers all categories?

Please link this reply if already covered elsewhere - I did search but found nothing.

1 Like

Each category calendar will only show you events from that category.

However, thereā€™s a site-level calendar at yoursite.com/calendar which will include events from all categories.

You can add a link to the site-level calendar:

  • By adding ā€˜calendarā€™ to the top menu site setting. This will add a ā€œCalendarā€ button to the navigation buttons for the non-category topic lists.

  • By turning the setting events hamburger menu calendar link on. This will add a ā€œCalendarā€ link to the hamburger menu.

4 Likes

Thanks for this reply.

I think have created ā€˜calendarā€™ in the top menu site setting. Although I canā€™t see it appear and returning to it, it isnā€™t saved and wonā€™t let me create:

I canā€™t find this?

Inputting URL mysite.com/calendar return error message that the page doesnā€™t exist or is private.

1 Like

Could you type ā€œeventsā€ into the site setting search take a screenshot of the results and paste it here?

Also please post a screenshot of yoursite.com/admin/plugins and yoursite.com/calendar.

1 Like

1 Like

Hi @angus

I come back to you because i tried to :

  • ssh and rebuild the app
  • comment and uncomment the plugin line in the app.yml

and still on the below screen shot when i click on the reset upgrade button it doesnā€™t answer

1 Like

Do a full rebuild from the command line and then click reset upgrade. We fixed this issue.

5 Likes

@sam, yep, sorted, it is fixed.

Many thanks, iā€™m greatfull

4 Likes

Hi!

Is it possible to provide a link to a .ics file containing all events in a specific forum? I know how to get individual .ics files for individual eventsā€¦ but an aggregated file containing all events?

That could be a cool feature for communities! Instead of adding events to the own private calendar one-by-one, this would enable users to show the community calendar based on discourse events directly in their own application along with google calendars etc.

Thank you for the great work with this plug-in!

1 Like

@angus Iā€™m not 100% sure event timezones are respecting DST changes, sadly. Compare these shots from Discourse and from my terminalā€¦

Screenshot%20from%202018-05-21%2012-25-29
Screenshot%20from%202018-05-21%2012-26-06
Screenshot%20from%202018-05-21%2012-27-55

So may laptop is in Europe/London and systemctl knows thatā€™s currently GMT+1, but Discourse doesnā€™t seem to know that in either the creation or display. Right now Iā€™m creating events in GMT explicitly and subtracting an hour in my head, so I can be sure I get it right. Am I again missing a setting, or is this a bug? Thanks!

1 Like

I think what may be confusing you is the timezone label. Itā€™s not clear to me from your post that the time is actually incorrect.

Behind the scenes the IANA label, i.e. `Europe/London``, is always used to format the actual timed displayed. The choice about what to put in the timezone label however comes down to the formatting method of the timezone label.

Could you try turning the events timezone rails format setting off?

2 Likes

Hey there again. Once again - thank you so much for this amazing plugin, i was waiting for such thing for a loooooong time.

Iā€™ve been asking for making it able to require user to add event date in topic in event-enabled category some time ago in this topic but it seems to be forgotten/lost. Or it was completely removed from the roadmap.

Maybe iā€™m gonna provide some background on why is such thing pretty important in my (and i think not just in mine) situation - people are adding events without the dates (because they are lazy or non-perceptive, not sure) and the events are then not presented on the agenda page of my Events category (which is a completely reasonable behaviour). As this category is all about the events, i want the Agenda page to be the default one so iā€™ve set up that like this.

Result of this is a lot of events without dates added + people asking why their event is not visible when they visit the Events category. I need to respond to each one of them about the agenda and event dates things + i need to edit all the events by myself to add the missing dates.

Itā€™s more like these users issue than the plugin issue but still, i think a good UX practice would be to make it able to force them to add the datetime. It would cut the confusion step caused by the fact that their event is not visible in the default Agenda page for Events category.

Thanks in advance!

2 Likes

Sorry for the delay, I didnā€™t see that setting and had to schedule time for an upgrade :slight_smile:

You are correct, itā€™s the label I was concerned about, the time is correct - and yes, unchecking that setting seems to have worked. Thanks!

2 Likes