YouTube Live Streaming API Broadcast Start Date Timezone Not Working - timezone

I'm using youtube live streaming api to setup my live events. When I set date to scheduledStartTime and save the event, it stores date time but it ignores Timezone.
No matter what timezone value I set, I always end up with (GMT-7). Here is an example of what I set 2015-09-10T21:00:00.0000000+04:00 I'd end up with (GMT+4)
Does anybody knows how to solve it?

According to the YouTube Live Streaming API Docs, the format for scheduledStartTime must be in ISO 8601 format:
datetime
The date and time that the broadcast is scheduled to start.
The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
You didn't list a specific platform, but my working date format string on iOS is as follows:
YYYY-MM-dd'T'HH:mm:ssZZZZZ

Related

Is there a way to check Premiere's date and time via YouTube API?

Is there a way to check Premiere's date and time?
User can upload video to YouTube and schedule its first run. It can be done by setting a video as Premiere -> https://support.google.com/youtube/answer/9080341?hl=en
I would like to know the time and date when a video will be "live"; when I can actually watch it.
I can't find any parameter in /videos or /search that could help.
Only liveStreamingDetails or eventType=upcoming belongs to category of what I search for but they don't provide information about date and time.
Best,

Obtain the scheduled publish date/time for a previously uploaded and scheduled youtube video

I am traversing the uploads playlist using the youtube v3 api, and fetching details for each video using videos/list({id}). I'm requesting the snippet and contentDetails parts, but I'm finding that snippet.publishedAt and contentDetails.videoPublishedAt fields always reflect the uploaded date, not the scheduled date (for videos that were scheduled when uploaded).
I have requested all of the documented parts and don't see a 'scheduledDate' field anywhere; wondering if there is another technique to obtain this info?
According to the docs, you have at your disposal the following property:
status.publishAt (datetime)
The date and time when the video is scheduled to publish. It can be set only if the privacy status of the video is private. The value is specified in ISO 8601 format. Note the following two additional points about this property's behavior:
If you set this property's value when calling the videos.update method, you must also set the status.privacyStatus property value to private even if the video is already private.
If your request schedules a video to be published at some time in the past, the video will be published right away. As such, the effect of setting the status.publishAt property to a past date and time is the same as of changing the video's privacyStatus from private to public.
For to obtain this property from the Videos.list API endpoint, do not forget to pass to the parameter part the value status too.

Check if date is correct in IOS

Currently, I am grabbing the current date by NSDate().timeIntervalSince1970. However, I am concerned that the user will change the date on the phone to mess with my app. So I was wondering which of the two options below is a more suitable fix
Is there some sort of Apple way to grab the current date from an apple server.
Is there a good and reliable API where I can grab current date?
Use the TIMEAPI available at www.timeapi.org
You can retrieve the current time in UTC here.

Is it possible to do a search for videos updated after date? [YouTube-Data-Api]

I am wondering if it is possible to get a list of videos that have been updated after a specified date? I am writing an application that helps users manage their videos titles, thumbnails, tags, descriptions, etc. This app really targets content creators that put out episodic content on a set schedule but also includes data of past videos. I am currently able to retrieve videos but I don't want to have to retrieve every video at the start of the application. It's both costly as far as the quota is concerned and time consuming. What I would like to do, is retrieve every video when the application starts up for the first time and store the data (done) and then any time after that, retrieve only new videos and/or videos that have been updated since the last date checked. If this is possible please let me know how I would go about this.
If not and a Google engineer happens to see this, this functionality would make for a very useful feature.
Maybe you want to use publishedAfter and publishedBefore from ressource search.list.
The publishedAfter parameter indicates that the API response should
only contain resources created after the specified time. The value is
an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). (string)
The publishedBefore parameter indicates that the API response should
only contain resources created before the specified time. The value is
an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). (string)

Google Calendar generates incorrect time in xml feed

I'm generating an ICS feed from an exchange server with the timezone set to "UTC Dublin, Edinburgh, Lisbon, London"; I'm then importing this into Google Calendar, which then creates an XML feed which I then import into FullCalendar in my Rails application.
The ICS feed from the exchange server has this:
SUMMARY:Test Event
DTSTART;TZID=GMT Standard Time:20140713T000000
DTEND;TZID=GMT Standard Time:20140719T000000
However the XML feed generated by Google Calendar, is wrong. it shows:
<title type='html'>Y12 Biology Field Trip</title><summary type='html'>When: Sat 12 Jul 2014 23:00 to Fri 18 Jul 2014 23:00&nbsp;
UTC<br>
How do I correct the xml feed created by Google Calendar? It appears it isn't using GMT Daylight saving.
Or, how do I force use of Daylight saving in Google Calendar/FullCalendar?
My 2nd go at this... For me, there is nothing incorrect in the google feed. Google is receiving a time in "GMT Standard Time", an ambiguous time zone which, contrary to what you might expect, may have daylight saving. It then converts this time to UTC (no daylight saving), It does this because UTC is the timezone of the google calendar. Events imported into a google calendar are converted to the time zone of the google calendar. So midnight becomes 11pm.
I don't know fullcalendar, but the google xml feed is not suited for digestion by machines. Event times are mixed up in text descriptions. The timezone information is too short to be definitive. You would be much better sticking with Icalendar for exchanging calendar information. Why can't full calendar handle the Ical feed directly from Exchange? If you persist with google xml, try changing the time zone setting on the google calendar.

Resources