maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Calendar Home Widget replacement (https://talk.maemo.org/showthread.php?t=55018)

infected69 2011-04-11 18:19

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by nicolai (Post 985114)
new version 1.2
- use localized name for "private calendar"
- hopefully solved the bug
with birthdays on wrong day.

Work in Progress!
Now the recurrent non-daily events have wrong start time :-(
Nicolai

thx my birthdays are now correct after the update...

thx

x-lette 2011-04-12 10:45

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by nicolai (Post 985114)
new version 1.2
- use localized name for "private calendar"
- hopefully solved the bug
with birthdays on wrong day.

Work in Progress!
Now the recurrent non-daily events have wrong start time :-(
Nicolai

Just as a hint, don't know if it has to do with your problem. Using the builtin calendar I had some strange errors regarding birthdays. Sometimes they were starting on correct day and somewhen moved one day ahead. In details they still showed correct starting date. Probably this got fixed by last FW update, I didn't look into it for a long time.
Nevertheless, currently all my events are showing up correctly. But I don't have recurrent non-daily events currently. ... but I could test ....

nicolai 2011-04-13 09:48

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by nicolai (Post 985114)
new version 1.2
- use localized name for "private calendar"
- hopefully solved the bug
with birthdays on wrong day.

Work in Progress!
Now the recurrent non-daily events have wrong start time :-(
Nicolai

Next try. Version 1.3

WhiteWolf 2011-04-13 10:18

Re: Calendar Home Widget replacement
 
Nicolai...

Thanks.

okropnick 2011-04-13 10:50

Re: Calendar Home Widget replacement
 
I'm using Calendar Home Widged v1.2 from some time - about 2 months. Today I noticed, that all calendar events displayed by CHW are shifted one hour forward. Don't know how to fix it or reset to defaults. Any ideas? How can I help to fix it?

okropnick 2011-04-13 11:55

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by okropnick (Post 987216)
I'm using Calendar Home Widged v1.2 from some time - about 2 months. Today I noticed, that all calendar events displayed by CHW are shifted one hour forward. Don't know how to fix it or reset to defaults. Any ideas? How can I help to fix it?

Ok... Version 1.3 seems to fix described by me problem.

stlpaul 2011-04-13 16:49

Re: Calendar Home Widget replacement
 
Time for an MfE calendar entry is off by 1 hour for me using today's updated version.

nicolai 2011-04-13 18:15

Re: Calendar Home Widget replacement
 
what kind of entries? Events or Todos?

And what timezone settings do you have?


Nicolai

Carlito 2011-04-13 21:30

Re: Calendar Home Widget replacement
 
possible to set custom icons instead of the colored squares?

x-lette 2011-04-14 10:24

Re: Calendar Home Widget replacement
 
Using version 1.3 I currently cannot see any errors in display of birthdays or recurring events. I set up an event of one hour duration repeating weekly and it's displayed correctly. Same for upcoming birthdays of which one is today and one tomorrow. Date and age are correct. :)

My settings are: UTC+2 (=UTC+1+DST) and display of upcoming three weeks with all recurrences and events only (no tasks).

Carlito 2011-04-17 10:19

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by x-lette (Post 988033)
Using version 1.3 I currently cannot see any errors in display of birthdays or recurring events. I set up an event of one hour duration repeating weekly and it's displayed correctly. Same for upcoming birthdays of which one is today and one tomorrow. Date and age are correct. :)

My settings are: UTC+2 (=UTC+1+DST) and display of upcoming three weeks with all recurrences and events only (no tasks).

same here..

Carlito 2011-04-18 12:23

Re: Calendar Home Widget replacement
 
@Nicolai:

Could help you with the sql queries if you like. Or is it just about the timeset on the telephone? DST stuff ?

nicolai 2011-04-18 12:26

Re: Calendar Home Widget replacement
 
Are the displayed events still wrong?
I thought the latest version solved all time shift related bugs.

Nicolai

Carlito 2011-04-18 12:44

Re: Calendar Home Widget replacement
 
Nope . . . still displaying two hours earlier . . .

stlpaul 2011-04-18 15:53

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by nicolai (Post 987532)
what kind of entries? Events or Todos?

And what timezone settings do you have?


Nicolai

It seems that if I create an event on my N900 the time is correct. But if I synchronize an event from Exchange server (using MfE), the time is shown wrong. It shows 1 hour in the future, for example if my meeting is 9:00 it will show up as 10:00 instead.

My time zone is set to America/Chicago. The times show correctly in the nokia calendar widget, and the calendar itself, and my reminder alarms still ring at the correct time. So it seems like it's only displaying
wrong in this one place.

Let me know if there's any other info I can provide to help solve it! Thanks. :)

nicolai 2011-04-19 09:27

Re: Calendar Home Widget replacement
 
Hi stlpaul,

can you use sqlite3 to export some of these calendar entries.
I don't use MFE, so for me it is difficult to reproduce it.

Thank you.

Nicolai

stlpaul 2011-04-20 21:07

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by nicolai (Post 991662)
can you use sqlite3 to export some of these calendar entries.
I don't use MFE, so for me it is difficult to reproduce it.

Hi, absolutely, thanks for your fine work. :)

Here is my time zone:
Code:

sqlite> select * from timezone where location='America/Chicago';
America/Chicago|/freeassociation.sourceforge.net/Tzfile/America/Chicago|26269200|6231600|-21600|-18000|FREQ=YEARLY;BYDAY=1SU;BYMONTH=11|FREQ=YEARLY;BYDAY=2SU;BYMONTH=3|CST|1

Here I created 2 events with the same start and end time; one on my N900 (shows up properly) and one from Exchange (created in Outlook), which shows time wrong by 1 hour in the widget:
Code:

sqlite> select * from components where id>793;
794|1|1|4|1303336800|1303338600|Test from N900|||-1||-1|0|1303332422|1303332738|:America/Chicago|-18000
795|1|1|4|1303336800|1303338600|Test from Exchange||

|0|040000008200E00074C5B7101A82E008000000008031F03C72FFCB01000000000000000010000000C7BDDF7F6675664DB1E7E27A75331E8E|-1|0|1303332470|1303332779|:America/Nassau|-14400

So we can see the UTC start and end timestamp are identical. The last columns are the interesting ones :) Time Zone ID and Time Zone Offset to UTC.

Why does my Exchange event have America/Nassau and -14400? This difference of course is 3600 seconds, 1 hour, exactly the wrong difference in time on the widget.

But the strange part is that Nokia's widget, and in fact the rest of the calendar and alarm system, can properly interpret the date. Does this mean they only use UTC and compute TZ offset independently, ignoring the TZ and offset in this table? And that the calendar database contains the wrong values, apparently.

My company's Exchange server is located in US Eastern Time Zone, which happens to 1 hour ahead of mine. Maybe that's where the bad data comes from (if it's bad?).

Please let me know if you need any other data, thanks.

nicolai 2011-04-26 08:05

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by stlpaul (Post 992819)
But the strange part is that Nokia's widget, and in fact the rest of the calendar and alarm system, can properly interpret the date. Does this mean they only use UTC and compute TZ offset independently, ignoring the TZ and offset in this table? And that the calendar database contains the wrong values, apparently.

That is really strange. I had so many bugs with wrong time offset, which
I got fixed only by using the TZ and TZ-offset.

I am afraid I can not simply remove this time offset from the timezone,
as in other cases the time offset may be wrong again.

Nicolai

amok 2011-04-26 09:24

Re: Calendar Home Widget replacement
 
I am traveling quite often and I tend to set the timezone to every place I go. I have noticed that every time I edit any of my contacts while being abroad the birth date is set to the current timezone (I saw that using the sqlite3 command).

Due to that "behavior" the birth dates appeared with an offset for those contacts when I get back home.

In order to fix this, I have to edit the affected contacts again, when I am returning to my default time zone.

I though that this might help someone.

hawaii 2011-04-27 13:42

Re: Calendar Home Widget replacement
 
Is it possible to adjust the opacity of the background tiles in this widget? Where does it pull the graphics from?

nicolai 2011-04-27 13:47

Re: Calendar Home Widget replacement
 
CURRENT_THEME/images/CalendarAppletBackground.png

TimusEravan 2011-04-28 11:22

Re: Calendar Home Widget replacement
 
I have one feature request : Have an option to show future events only upto some date.
For example, I have set an event for June 20. I can have an setting option to show events only say 20 days in future - so this event will not be shown on the desktop widget till May 30. The number of days in future to be configurable.
Can this be done?
Thanks :D

Edit: I found the option to do it :o

markusm 2011-04-29 12:18

Re: Calendar Home Widget replacement
 
I have a strange problem with the widget - all the events are shown as starting 1 hour earlier than they are actually set in the calendar. Any fix for it?

Maybe this has been asked and answered before but I couldn't find it. I'd appreciate any help and tips.

Thanks!

stlpaul 2011-04-29 20:17

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by nicolai (Post 995430)
That is really strange. I had so many bugs with wrong time offset, which
I got fixed only by using the TZ and TZ-offset.

I am afraid I can not simply remove this time offset from the timezone,
as in other cases the time offset may be wrong again.

Nicolai

(disclaimer: I didn't look at the code :))

If you're using TZ/TZ-Offset of the event, I think that's the cause of the problems.

You can reproduce the error without MfE as well:

I set time zone to to America/Chicago. (GMT -5)
Create new event for 5:00
Cal-Home widget shows event at 5:00
Change time zone to America/New_York (GMT -4)
Cal-Home widget still shows event at 5:00, but it should be 6:00

(you can use any time zones as long as they differ)

The UTC timestamp in the calendar database is correct in every case.

I think using the TZ/TZ-Offset of the event is fundamentally the wrong thing to do. The event does not necessarily happen in the same TZ the N900 exists in. For example, if I live in New York and I get an meeting request from someone in Tokyo, I don't want to see Tokyo local time, I want to see New York time. Or if I am traveling, I want my times to reflect the time zone where I am presently located, not the time zone I was in when the calendar entry was created.

I think you should read time zone of the N900 and compute the offset from UTC start and end times based on that. TZ of the event itself is irrelevant. In my opinion.

Forgive me if I misunderstood or made false assumptions about how it is calculated. I'm only trying to help. Thanks. ;)

nicolai 2011-05-01 12:18

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by stlpaul (Post 997534)

I think using the TZ/TZ-Offset of the event is fundamentally the wrong thing to do. The event does not necessarily happen in the same TZ the N900 exists in. For example, if I live in New York and I get an meeting request from someone in Tokyo, I don't want to see Tokyo local time, I want to see New York time. Or if I am traveling, I want my times to reflect the time zone where I am presently located, not the time zone I was in when the calendar entry was created.

I think you should read time zone of the N900 and compute the offset from UTC start and end times based on that. TZ of the event itself is irrelevant. In my opinion.

Yes, but I had this timezone bugs with allday and birthdays
events (and todos maybe).

Now I changed it again. All times are in localtime again,
besided allday events, birhtdays and todos.

Please test and report back when it is still (or again) wrong.

Nicolai

JensU 2011-05-01 13:19

Re: Calendar Home Widget replacement
 
if i change the time zone to a different one all displayed times remain the same.
my guess is that the difference between event time offset and current system time offset is missing.

nicolai, i've seen in the code you've removed the relevant part with getSystemTimeShift()? imo the calculation (time = eventTimeOffset - systemTimeOffset) there doesn't look bad :)
didn't it work?

best
jens

EDIT: didn't read you last post nicolai, took me too long to write this one (my little daugther demanded some attantion :), i'll give it a try asap

stlpaul 2011-05-01 21:54

Re: Calendar Home Widget replacement
 
Quote:

Originally Posted by nicolai (Post 998256)
Now I changed it again. All times are in localtime again,
besided allday events, birhtdays and todos.

Please test and report back when it is still (or again) wrong.

Hi Nicolai,

Now I'm using the new version and so far everything looks correct to me. Thanks for the quick work :)

JensU 2011-05-02 06:24

Re: Calendar Home Widget replacement
 
hi,

i can confirm it too, works as expected.
thanks nicolai!

cheers
jens

JensU 2011-05-02 07:32

Re: Calendar Home Widget replacement
 
i've found one small issue.
when the time of an event has arrived and you change the time zone it will disappear even your are stil between start and end time.
e.g. at "BERLIN GTM+2" an event at 9:00 is scheduled. if i change the TZ to "MOSKOW GTM+4", the even will disapear at 11:00, in "GTM+2" i will still be visible till 10:00.
the times are displayed correct at any time and TZ, so it seems only to be the condition for "now" events ( event_end_time could be the problem, as it's not handled like the event_start_time )

cheers
jens

nicolai 2011-05-02 08:04

Re: Calendar Home Widget replacement
 
Yes you are right.
I remember, while testing, something like "don't forget the end time" came to mind :-)

matimilko 2011-05-04 15:04

Re: Calendar Home Widget replacement
 
Hello!

From first month is this widget on my N900 on first screen.
Excellent work!!!
But. I have one small question. Is possible to make on month view to see text of tasks similar to Week view?
That would be really useful.

Thanks.
Milko

guilledoc 2011-05-09 16:44

Re: Calendar Home Widget replacement
 
Hi this is a great widget, is there a way to get it work in portrait?
Thanks a lot

noetus 2011-09-20 07:10

Re: Calendar Home Widget replacement
 
I a having a small issue: the widget does not display all the events. There is an event for today that simply isn't showing in CHW, although it shows correctly in the built-in Calendar widget. Also when I try to create new events, they are shown correctly, including for today, but this one event will not show up in Calendar Home Widget. It happened after I changed the alarm, from 5 minutes before, to no alarm, for that event - then it disappeared from CHW.

nicolai 2011-09-20 08:02

Re: Calendar Home Widget replacement
 
Thank you for reporting this.
Can you please give some more details on the missing event.
(recurrence, start end time, ...).

nicolai

noetus 2011-09-23 08:30

Re: Calendar Home Widget replacement
 
Well, that event is now in the past, but I have another one that is not showing up in the widget. I am using Nuevasync to sync to my google calendar. I have of course checked to make sure CHW is set to show this calendar. An event was entered today in Google Calendar for today and is showing up in the N900's calendar, but CHW is not showing it. The pattern is that again it is an event for today. The details are:

Title: "text...."
Where: <blank>
All day: unchecked
From: Fri 23 Sept 2011 14:00
To: Fri 23 Sept 2011 15:00
Repeat: Never
Calendar: <my_synced_calendar>
Alarm: Fri 23 Sept 2011 13:50
Description: <blank>

I need to have all my events reliably on my desktop, so I am switching back to the built-in widget until there is a fix, unless you want me to help troubleshoot/debug, in which case I ask you to send me a PM.

nicolai 2011-09-23 19:22

Re: Calendar Home Widget replacement
 
Hi noetus,

there was another user which had some problems with
nuevasync and google calendar, but I can not remember
if it was solved.

I think I need the full event data to reproduce this error.
Can you please export the event data of this event
with sqlite3 (sqlite3 is a commandline program, which can read and
edit your event database):
open x-term and do the following commands:
sqlite3 /home/user/.calendar/calendardb
select * from components where summary ="EVENTTITEL";
.quit

(where EVENTTITEL is your event title)

And paste the output here (or send me PM).

Nicolai

noetus 2011-09-24 14:26

Re: Calendar Home Widget replacement
 
PM sent....

nicolai 2011-09-25 15:23

Re: Calendar Home Widget replacement
 
Are you sure this is the correct entry?
I imported it to my calendar and both calendar
widgets doesn't show it.
The start time of this event is somewhere in 1974(!)
Is this event from GMail calendar or
MS Outlook?

nicolai 2011-09-26 21:44

Re: Calendar Home Widget replacement
 
Finally I can reproduce this bug, thank you noetus!
I fixed this in the upcoming version (1.5).
This is again a bug related to timezone offsets and this
a difficult area, as the timezone offset is handled differently
for events, birthdays, allday events, and tasks.
I may have reintroduced old bugs, but I tried my best
to test this fix with testcases from older bugs.
Please don't be upset if something doesn't work (again),
just report back if there are any bugs and I will try to fix it asap.


regards
Nicolai

colchaodemola 2011-09-29 10:57

Re: Calendar Home Widget replacement
 
Nicolai , could you add support to ALARM on birthdays ? i just set alarm all birthdays at 10 am , so it will do an alarm showing BIRTHDAY of NAME.


All times are GMT. The time now is 20:35.

vBulletin® Version 3.8.8