Open GoogleCodeExporter opened 9 years ago
[deleted comment]
I modified the code to get the events from sharepoint list instead of from an
xml
file. The code shown above didn't work for me. The date time in the event popup
bubble said "GMT" or "UTC" depending on the browser. So I came up with this
workaround: Add the following code right after I include the timeline-api.js.
The
date in the event popup bubble would then be in locale convention. You can use
.toLocaleString() instead if you want to show both date and time.
<script>
// To change .ToUTCString() to .ToLocaleDateString() so the date time would be in
locale convention.
Timeline.GregorianDateLabeller.prototype.labelPrecise = function(date) {
return SimileAjax.DateTime.removeTimeZoneOffset(
date,
this._timeZone //+ (new Date().getTimezoneOffset() / 60)
).toLocaleDateString();
};
</script>
Original comment by lo.cori...@gmail.com
on 2 Feb 2010 at 6:32
Original issue reported on code.google.com by
GabrielR...@googlemail.com
on 7 Apr 2009 at 7:31