add: gEndTimezone = endTime.timezone; endTime = endTime.getInTimezone(kDefaultTimezone); } 
context: function loadDateTime(item) {  if (isEvent(item)) {    var startTime = item.startDate;    var endTime = item.endDate;    var duration = endTime.subtractDate(startTime);        // Check if an all-day event has been passed in (to adapt endDate).    if (startTime.isDate) {      startTime = startTime.clone();      endTime = endTime.clone();      endTime.day -= 1;      duration.days -= 1;      // The date/timepicker uses jsDate internally. Because jsDate does      // not know the concept of dates we end up displaying times unequal      // to 00:00 for all-day events depending on local timezone setting.       // Calling normalize() recalculates that times to represent 00:00      // in local timezone.      endTime.normalize();      startTime.normalize();    }        gStartTime = startTime;    gEndTime = endTime;    gItemDuration = duration;  }  if (isToDo(item)) {    var startTime = null;    var endTime = null;    var duration = null;        var hasEntryDate = (item.entryDate != null);    if (hasEntryDate)      startTime = item.entryDate;    var hasDueDate = (item.dueDate != null);    if (hasDueDate)      endTime = item.dueDate;    if (hasEntryDate && hasDueDate)      duration = endTime.subtractDate(startTime);    gStartTime = startTime;    gEndTime = endTime;    gItemDuration = duration;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e88c5e5790ad7e031eea31fbbc337d708405a073/sun-calendar-event-dialog.js/buggy/calendar/prototypes/wcap/sun-calendar-event-dialog.js