diff --git a/docs/html/resources/webinars/date.js b/docs/html/resources/webinars/date.js index 97abf4b350d73..5768aa7d05124 100644 --- a/docs/html/resources/webinars/date.js +++ b/docs/html/resources/webinars/date.js @@ -98,3 +98,22 @@ function formatDate(start,end) { return str; } + + +function formatDateUtf(date) { + var regex = /(^\d{4})-(\d{2})-(\d{2})\s{1}(\d{2}):(\d{2}):(\d{2}$)/; + var match = regex.exec(date.toString()); + var yy = match[1]; + var mm = match[2]; + var dd = match[3]; + var hh = parseInt(match[4], 10) + 8; // +8 to convert from PST to GMT + var mi = match[5] + "00"; // add seconds + + if (hh >= 24) { // If the GMT adjustment put us into the next day, + dd++; // increment the day and + hh -= 24; // set the hour back to real hours + } + hh = hh < 10 ? "0" + hh : hh; // form a double digit number for single digit hours + + return yy + mm + dd + 'T' + hh + mi + 'Z'; +} diff --git a/docs/html/resources/webinars/webinar-upcoming.jd b/docs/html/resources/webinars/webinar-upcoming.jd index b9602f4df5f37..34879ec91ed54 100644 --- a/docs/html/resources/webinars/webinar-upcoming.jd +++ b/docs/html/resources/webinars/webinar-upcoming.jd @@ -26,8 +26,15 @@ function renderWebinar(data) { code.push('
' + formatDate(start, end) + ''); - code.push('
' + description); + code.push('
' + formatDate(start, end) + '');
+ code.push('
Add this to my calendar
' + description + '
'); code.push('This page provides a schedule of upcoming webinars. + When a webinar occurs, you can watch it live and participate in an ICQ session that's coupled + with the presentation, by following the live link at + Watch a Webinar.
Webinars are web-based seminars that provide online training for a wide range of Android + developer topics. When a new webinar takes place, you can watch live and chat with the presenter + and other participants in an IRC session that's coupled with the presentation. The IRC session +is held on the #android-dev channel at irc.freenode.net.
+When available, live webinars appear at the top of this page. If there's no live webinar, you + can watch one of the previous webinars from the list below.