X-Git-Url: https://code.delx.au/comingnext/blobdiff_plain/425ada1748988af6de379edb00cca52c2a4eadf2..a3f3c781dfad66f933e34cb5ad0319e6c33582fb:/comingNext/index.html diff --git a/comingNext/index.html b/comingNext/index.html index 14da1c3..f8ffff8 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -611,7 +611,7 @@ function updateData() // This usually happens when a backup is being made. // Retry the next time updateData() is called by // resetting errorOccured - log('updateData(): listCalendars() failed, trying again laster...'); + log('updateData(): listCalendars() failed, trying again later...'); cacheEntriesHtml = ''; // make sure we replace the currently shown error message on the next update errorOccured = false; return; @@ -782,6 +782,14 @@ function updateData() log('date: ' + date); var endDate = ((entryEndTime == null) ? null : parseDate(entryEndTime)); log('endDate: ' + endDate); + + // check if Meeting is actually a DayEvent. Bug introduced by "Anna" updates to various Symbian^3 devices. + // Note that this workaround is not 100% save! It might missinterpret some meetings as dayevents of starting and ending on 00:00 + if (entry.Type == 'Meeting' && date.getHours() == 0 && date.getMinutes() == 0 && + endDate != null && endDate.getHours() == 0 && endDate.getMinutes() == 0) { + log('fixing event type: changed from "Meeting" to "DayEvent".'); + entry.Type = 'DayEvent'; + } // check if meeting event has already passed if (entry.Type == 'Meeting') {