51

Re: iCal subscribing?

ForeverTheGM wrote:

The changes you've made recently removed the specific air times for each show event. The DTSTART and DTEND variables for each event within the ICS file are now exactly the same. This makes each show be listed as an all day event (12 AM to 12 AM) on their respective airing days.

BTW, can you also include X-WR-TIMEZONE, so I no longer have to adjust the dates?

This.

I found it best that the ical subscription would list the shows on my calendar at their respective timeslots, but now it simply shows them as all day events. Any chance on reverting back to the old method? Thanks.

52

Re: iCal subscribing?

Will fix this in the coming days .. Stay tuned.

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

53

Re: iCal subscribing?

Did some tweaks.

Added the X-WR-TIMEZONE AND the shows shouldn't appear as an all day event no more.

Let me know guys how it works for you...

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

54

Re: iCal subscribing?

santah wrote:

Did some tweaks.

Added the X-WR-TIMEZONE AND the shows shouldn't appear as an all day event no more.

Let me know guys how it works for you...

Hi Santah,
Apologies I didn't see this sticky, Ive noticed that iCal with 1 day offset is now showing episode air time instead of being an allday event. So the above fix has unfortunately broken the old behaviour.

Cheers
John

55

Re: iCal subscribing?

ok so, when there's one day offset - we want it an all day event.

Got it, will fix it tomorrow smile

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

56

Re: iCal subscribing?

santah wrote:

Did some tweaks.

Added the X-WR-TIMEZONE AND the shows shouldn't appear as an all day event no more.

Let me know guys how it works for you...

Just checked my iCal subscription. All fixed. Thanks!

57

Re: iCal subscribing?

Alright, modified again, so that the shows will be an all-day event if the 1 day offset setting is on.

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

58

Re: iCal subscribing?

I subscribe to my next episode calendar through google and recently everything started showing a two hour delay. This puts most things arround 11pm to 1am, so some are on the right day and some one day behind.  Anyone know how to fix?

My timezone is set correctly.  I tried to change it and correct the offset but it had no effect. I also tried a different calendar other than subscribing though google but it had the same issue.  Any way to just make these show up as all day events as an option?

59

Re: iCal subscribing?

Hi Santah, just to let you know your fix for events with a 1 day offset looks good.

Cheers
John

60

Re: iCal subscribing?

I am also having the problem with show times being 3 hours later. In my user settings I am set to EST (-5:00) but if I have a show starting at 8pm it shows up on the calendar as 11pm.

61

Re: iCal subscribing?

I'm pretty sure the time appearing wrong on the episodes is to do with the X-WR-TIMEZONE set on the calendar. It seems to be US/Pacific regardless of the timezone set in your preferences. This means all episodes are getting set to the date/time at -8 hours. If your Google calendar is set to a different timezone, all episodes will have the wrong time (and possibly date). For example, I've got timezone set to GMT on the site, and in GCal, but exporting with the X-WR-TIMEZONE set to US/Pacific means all episodes appear 8 hours late in Google.

The timezone used to be set to the timezone configured under site settings - can this be brought back please?

62

Re: iCal subscribing?

Hmm, that post wasn't very clear and probably incorrect. Let me try again:

Previously, there was no X-WR-TIMEZONE set at all. The date and time on the shows exported was set to the date and time of the timezone set on the site. So if on the site you have GMT, and the show was on, say, 2013/05/06 22:00, then the event would simply be exported with that date/time. Google Calendar would import the events to the default timezone set in Google Calendar, which would be correct if the timezone was set to the same as that on the site settings.

Now, there is a X-WR-TIMEZONE which is always set to US/Pacific, but the events are still listed with the time and date corresponding to the timezone set on the site. In other words, the timezone is effectively different on the calendar export as a whole, and the events set within it (if you're on anything other than US/Pacific). So Google Calendar is setting the timezone of those events to the timezone listed on the calendar - US/Pacific. In practice, the 2013/05/06 22:00 event at US/Pacific time corresponds to 2013/05/07 06:00 GMT. Hence the episodes are listed incorrectly.

The solution would be to either:
* Remove the X-WR-TIMEZONE attribute
or
* Set X-WR-TIMEZONE to the timezone set in the site settings

Presumably the latter is preferred.

63

Re: iCal subscribing?

Changing the timezone in my settings no longer seems to change the export anymore either.

64

Re: iCal subscribing?

Very detailed request smile

Thanks for that, will look into it in a couple of hours and modify as suggested!

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

65

Re: iCal subscribing?

@criticalfiction

Ok. To clear things up.

Timezone on the site is not affecting the export (and never did) because the air times are in US/Pacific time, and the .ics timezone is set to US/Pacific.

From there, the thing that reads the export (google calendar in this case) knows that the times are in this timezone and should convert the times to your local timezone. It does that for me.

We have to figure out why it doesn't do it for you as well.

One possibility might be a setting on the site under settings/calendar tweaks/Offset the Calendar view by 1 day - If that's checked, it'll give you all the items as whole day events (with no start/end hour), and if it's unchecked - it should behave as described above - give the US/Pacific times.

Let me know exactly what's happening on google calendar for you (and what should be happening instead) as well as your settings on NE, especially the "Offset the Calendar view by 1 day".

We'll get to the bottom of this, sorry for having this issue for so long...

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

66

Re: iCal subscribing?

My first post!!

Anyways, getting air times correct on something like google calendar is a pretty complicated issue, and won't work correctly for most people (at least with next-episode's current implementation). For me everything works as it's supposed to in the ical export process, and google adjusts the time on each event properly to my time zone (Central), but the end result is that all shows are 3 hours off.  The reasoning behind this is that tv show air times (at least in the US) don't follow standard time zone offsets for most shows (live sports is one exception).  I think a better solution to this problem would be to display each show as an all day event (even if you don't have 1 day offset checked in the calendar tweak options).  That way at least all shows would be displayed on the proper day.  Here are a few sites that explain tv show time zone conversion in more detail.

http://suite101.com/article/a-simple-gu … on-a143992
http://en.wikipedia.org/wiki/Effects_of … oadcasting

67

Re: iCal subscribing?

Thanks for the quick reply santah. I haven't got the offset the calendar view by one day checkbox checked. But also, the export doesn't set the episode date and time to US/Pacific. For example, I've got an upcoming show which airs on UK tv 2013/04/10 22:00. I'd expect, if the export was set to US/Pacific, the event to show as start 20130410T140000, but it's being exported as 20130410T220000 - in other words GMT. As the dates and times show correctly on the site when I change the site timezone (I.e. the dates and times alter as expected) it suggests the date/time isn't getting converted correctly at export. This would explain why I didn't have a problem pre-X-WR-TIMEZONE.

On another note, the reason I thought the timezone setting on the site modified the export was something I read on the FAQ's/wiki/somewhere. I haven't got the link to hand but will post it here tomorrow.

68

Re: iCal subscribing?

I see. UK shows are problematic.

How about US ones, they appear ok in your google calendar?

Btw, I think I'll have a fix tonight, just need more info for safety smile

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

69

Re: iCal subscribing?

@nbeavers

It was like that before - it showed everything as a whole day event, but people started complaining and new problems appeared:)

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

70

Re: iCal subscribing?

Ok, so the reason I thought the timezone setting would be kept:

http://next-episode.net/news-permalink-520.html

This should export the calendar as you see it (with all the settings and filters)

santah, I haven't got any US shows on my calendar, but have added Hannibal for testing. DTSTART for the next episode is 20130411T210000. Airtime I see listed for it elsewhere is 22:00:00(GMT-5 +DST). I think this is correct, as US/Pacific won't have DST applied, and presumably the show will air at 22:00 regardless of the US timezone? But as nbeavers points out, US viewers in different timezones will have the discrepancy due to the timezone being set on the calendar to US/Pacific.

At this stage, the easiest solution might be to provide an option to prevent the X-WR-TIMEZONE from being set on the export, or a way to set it to a specific value.

71

Re: iCal subscribing?

X-WR-TIMEZONE is there to specify the timezone of the times in the .ics

It has to be there so then the client (google calendar) can take those times, and according to their timezone - convert em to the timezone of the user.

What I need to modify is, for non-US shows, to apply an offset (specific to the country they're aired in) that'll convert their times to US/Pacific as well, so that all the times in the calendar are correctly set to US/Pacific.

I'll do that for UK shows now and we'll see if it fixes your issue smile

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

72

Re: iCal subscribing?

Ok, try importing the .ics agan and let me know if it's closer to real air times than before smile

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

73

Re: iCal subscribing?

Sorry santah, still seeing the start times as GMT.

74

Re: iCal subscribing?

Show me  a screenshot from your google calendar, and tell me what do you expect to see instead of what you're seeing smile

https://next-episode.net/sig/sig.php?alias=default&kk=5ba0ff0eba240dd51b6bf07fff0abb0e

75

Re: iCal subscribing?

Hey,

I didn't look in Google Calendar, as I thought it might not have fetched an update. I just did a manual export of the ics file on the site. Example event - this airs 11th April, at 22:00 on UK TV:

BEGIN:VEVENT
DTSTART:20130411T220000
DTEND:20130411T220000
SUMMARY:Celebrity Juice - 9x7
DESCRIPTION:Celebrity Juice - Sarah Harding, Stephen Mulhern - Season 9, Episode 7
URL:http://next-episode.net/celebrity-juice
UID:celebrityjuice_9_7
SEQUENCE:0
DTSTAMP:20130411T142010Z
TRANSP:TRANSPARENT
CATEGORIES:Celebrity Juice Episodes, TV Shows
END:VEVENT

I'd expect if the datetime was getting converted to US/Pacific to see:

BEGIN:VEVENT
DTSTART:20130411T160000
DTEND:20130411T160000
SUMMARY:Celebrity Juice - 9x7
DESCRIPTION:Celebrity Juice - Sarah Harding, Stephen Mulhern - Season 9, Episode 7
URL:http://next-episode.net/celebrity-juice
UID:celebrityjuice_9_7
SEQUENCE:0
DTSTAMP:20130411T142010Z
TRANSP:TRANSPARENT
CATEGORIES:Celebrity Juice Episodes, TV Shows
END:VEVENT