From: Michael Prager Date: Fri, 19 Aug 2011 20:06:19 +0000 (+0200) Subject: added workaround for DayEvents which have type "Meeting" since latest "Anna" firmware... X-Git-Url: https://code.delx.au/comingnext/commitdiff_plain/4b6eaabd47130fcd85c685d6e288ead19bcf68c4 added workaround for DayEvents which have type "Meeting" since latest "Anna" firmware update. --- diff --git a/Readme.txt b/Readme.txt index ea71421..2bb67db 100644 --- a/Readme.txt +++ b/Readme.txt @@ -278,6 +278,8 @@ Changelog: 1.33 () by Michael Prager - added support for X7-00, E6-00, T7-00, 500 and other "Anna" devices - added weekday fix for Symbian^3 devices which got an "Anna" firmware update + - fixed DayEvent showing up as Meeting on Symbian^3 devices which got an "Anna" + firmware update - improved error handling: don't break widget when a system backup is made - updated included "Skin Fetcher" tool to version 1.5 (which now properly supports N8-00, E7-00, C6-00, C6-01, C7-00, C7 Astound, X7-00, T7-00 and 500) diff --git a/comingNext/index.html b/comingNext/index.html index 14da1c3..30d91bc 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -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') {