Skip to content

Instantly share code, notes, and snippets.

@shakna-israel
shakna-israel / googlecalendarapicurrentevents
Created August 8, 2014 06:14
Google Calendar - Current Events via API
<script type="text/javascript">
<!--
/**
* Converts an xs:date or xs:dateTime formatted string into the local timezone
* and outputs a human-readable form of this date or date/time.
*
* @param {string} gCalTime is the xs:date or xs:dateTime formatted string
* @return {string} is the human-readable date or date/time string
*/
function formatGCalTime(gCalTime) {