link for sharing an event to yahoo calendar - hyperlink

I have been looking for a way to add events to my yahoo calendar through a link. So far I have found the following links:
Adding Events to Users Calendars – Part 2 – Web Calendars
Adding Calendar Events to Yahoo
Yahoo! Calendar "Add Event" Seed URL Parameters
The problem I have is when an event has an end date that is more that 99hours 99min away from the start date (say for example a year for the start date) as the format for the duration is HHmm. Anyone know how to specify the link for this type of an event?
Also does anyone know the format of the REND parameter (used for recurring events)?

Now Yahoo has updated the parameter to be ET for 'end time'.
Use parameter ET with the YYYYMMDD format and the calendar event should display properly. (i.e. ET=20150119 for an end date of January 19th, 2015)

According to a comment on http://armcnallie.wordpress.com/2008/03/12/adding-calendar-events-to-yahoo/ REND is YYYYMMDD format (the article itself claims it's the number of seconds since 1/1/1970, but if that was the case it no longer appears to work - YYYYMMDD does work for me).

Related

Google Spreadsheet converting time automatically to current timezone

I have a google spreadsheet with a cell with my current time.
For example: Meeting at: 17:15
Is there a way, when a person from another computer and timezone opens the spreadsheet, that he can see the time in his current time zone.
Example: Meeting at: 2:15 pm.
Something like cell: =convertTime(17:15,"UTC +1) that automatically shows the 17:15 UTC+1 in your time zone?
Thanks
It's not possible to show different cell values to different users.
Google Sheets has a timezone setting for each spreadsheet but it hasn't a built-in fuction able to get the timezone of the current user. By the other hand custom function are executed anonymously so they will not be able to automatically get the current user timezone.
One option is to use Google Apps Script to create an user interface like a dialog or sidebar that use client-side code to show date / time value in the active user timezone.
Resources
https://developers.google.com/apps-script/guides/sheets

getting endDate=0001-01-01 in recurring event Range from Outlook graph API

I am trying to get a calendar event from Outlook365 using microsoft graph API. In case of recurring event the end date is coming as endDate=0001-01-01.
The same is for all types of recurring events like NoEnd and Numbered. Even when the end date is fixed
That's expected behavior. The endDate is only relevant on end date ranges, for noEnd and numbered there is no end date set on the range. See https://learn.microsoft.com/en-us/outlook/rest/recurrence-rules#recurrence-ranges

YouTube Analytics API Report.Query by Day with Timezone

I know, there is another Topic here with a similar Question, but the main Question has not been answered yet (as far as I understand).
Given, that the YouTube Analytics API is returning everything in "Pacific time zone", and I query the Data for "one Day" (via StartDate/EndDate) - the returned Data may not really make sense to me, if I need them in UTC. If the ViewCount for example comes as "800 Views" on 2017-12-24, this is 2017-12-24 in that Timezone, not the 2017-12-24 in a European Timezone (or at least UTC). SO basically, this Information is not helpfull at all to get the Amount of Views per Day from a User in a different Timezone.
How can this be corrected? Is there a Way to add a Timezone (I didnt find one), or to add a Starting/End HOUR, to get really a Day-Bucketed Collection in UTC?
Thanks,
Christoph

Accounting for daylight savings in rails webapp and iCal

Right, this is a bit confusing for me, so I'm going to try and explain from the top!
I have a rails web app. It's an internal company app and will only be used in the UK.
One of the things the app does is manage meetings.
Meetings have a date & time when they start. There's a date/time picker on the form which allows the user to pick the date & time the meeting is for. I save this date AS IS into the database. All meetings last 2 hours, so the end time is simply start + 2 hours.
Example:
2013-06-23 6:45PM in the form is stored in the db as 2013-06-23 18:45:00
2013-12-23 6.45pm in the form is stored in the db as 2013-12-23 18:45:00
Note that the first date is during Daylight Savings (BST) and the second is during GMT. I don't actually care whether it is GMT or BST: the meeting happens at that time, absolutely.
Inside the rails webapp, I simply print out the exact date & time from the DB - formatted nicely, of course!
Now, at some point I send an email to the organiser of the meeting, and the person they're meeting with. This email tells them the the date & time of the meeting etc, and also includes an iCal (.ics) file for them to put into their (Outlook usually, but also Apple or gmail) calendar.
The issue I am having is that (using the above examples) Outlook shows the meetings like this:
Meeting #1: Start: 23/06/2013 7:45pm, End: 23/06/2013 9:45pm
Meeting #2: Start: 23/12/2013 6:45pm, End: 23/12/2013 8:45pm
Note that it has adjusted the first one because of the BST/GMT thing.
The text of the .ics file contains this code:
Meeting #1:
BEGIN:VCALENDAR
...
DTEND:20130623T204500Z
DTSTART:20130623T184500Z
...
END:VCALENDAR
Meeting #2:
BEGIN:VCALENDAR
...
DTEND:20131223T204500Z
DTSTART:20131223T184500Z
...
END:VCALENDAR
So I am encoding the dates/times using the Z timezone (UTC). I understand this is why Outlook mis converting the UTC time into the BST time for #1 and leaving #2 alone (because GMT == UTC)
My question is: how do I stop this happening? I want the time the meeting is scheduled for to be the absolute, actual time, regardless of GMT/BST: 6:45pm
Should I be storing the date-times as UTC in the DB? How would this be done (I assume it would apply to all dates, not just meeting start dates). And how to re-convert them back into the actual datetime when I display them in the webapp?
Extra:
I have an entry in my initializers/time_formats.rb like this:
:ical => "%Y%m%dT%H%M00Z"
So dates come out like "20130623T184500Z". I use this when building the ics. And this I think is the issue - if the date/time is during BST I don't want to be using Z, but something else?
Your problem is your date/time format. You have:
DTSTART:20130623T184500Z
in your .ics file and this corresponds to 19:45 BST (as British summer time is UTC+1).
There are a few things you should do. First, you can simply remove the 'Z' from the end of your dates. This means that the times inherit the timezone of the calendar, or the underlying application.
This will work assuming that the machines which are running Outlook are all in the Europe/London timezone. If not, or if you want to be a bit safer, you should also specify the following after your BEGIN: VCALENDAR line:
X-WR-TIMEZONE:Europe/London
This specifies the default timezone for all dates which are not specified explicitly.
Finally, if this does not work for any reason then you need to define your datetimes explicitly. First you need to add a timezone definition for Europe/London to the calendar. The info you need is available at http://www.tzurl.org/zoneinfo-outlook/Europe/London.ics. Then you need to ensure that all datetimes are of the format:
DTSTART;TZID=Europe/London:20130623T184500
This last approach is the best, as it means that if your requirements expand to other timezones you will be able to handle them relatively easily.
Sorry to answer this myself, but in case anyone else runs into this here's what I found was the cause of my particular issue. Note that the answer above re timezones also makes sense!
My rails app is storing UTC datetimes in the DB (as is default)
But, it also thought it's own timezone was UTC, which also seems to be the default.
The upshot of that is essentially it was storing local dates, local to UTC anyway. Changing the app to know it was sitting in Europe/London made it so the dates in the DB are all now accurately UTC (meaning, they're an hour off if I'm currently in BST)
I can now use the Z datetime format in iCals, and outlook and the rails app both convert the UTC date back into the actual datetime for the viewing-user's locale (Europe/London for everyone at the moment). This is what I wanted.

Rails app - how to enter events in local time zone

I am working on a Rails app that displays a sports schedule (in a basic table). Each game/event is a db table row. The customer wants all the events to display in chronological order but to also display the time in the event's local timezone.
How can I add a timezone selector to the New action? So that when the customer enters events they can select the event's timezone and input the event's time in that timezone.
Here is what the schedule would look like:
Event 1 7:00 pm EST
Event 2 5:00 pm PST
Event 3 7:00 pm PST
I personally think this is confusing, but it's what they want. Thanks in advance.
Geoff Buesing wrote a great primer on Rails support of time zones back when 2.1 was released.
Okay I am not so sure I understood your question directly but here is my line of thinking there is a library I passed along called tzinfo which is supposed to give Rails the ability to work with timezones so my guess is do the following build a list for a select box (wikipedia has a good complete list) when the user selects the timezone send it to the server which will calculate the appropriate timings now and send back (maybe depending on your architecture you could send only the added hours that should be added or subtracted)

Resources