Google public calendars sync 1 day off.

For user who dont speak german please use this part of my forum
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Google public calendars sync 1 day off.

Beitrag von plarval »

Sorry, it's me again.

My user made google calendar syncs with everything fine.

I added the US Holidays calendar to my google calendar. It syncs fine with Thunderbird, all the dates are correct. When I sync to the phone, everything is off by one day. Example April Fool's day is April 1, but it wants to put it on March 31st in MPE and my phone.

All of my time zones are correct on everything. Computer, phone, lightning, etc.

I have found some similar threads, but none of them have seemed to contain the answer I need.

Thanks.
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

I just imported and .ics file into Thunderbird that had the Holidays in it. Again, everything shows up fine in Thunderbird, but the holidays want to sync one day earlier to my phone. ie: Christmas on the 24th.
FJ
Site Admin
Beiträge: 32109
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol

Beitrag von FJ »

You can also set the timezone for each calendar in google seperat. Maybe this is the problem ?
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

The "general" calendar settings in google are set correctly. The public calendars do not have a timezone option.


I'm not sure if that's the problem though, because the .ics file I imported into Thunderbird does not go through my Google calendar. I just imported it as a new Thunderbird calendar from a file on my desktop. Either way, both methods look fine in thunderbird, but continue to sync one day off in MPE and my phone. No error messages are given.

Could it maybe be a daylight savings issue. I'm sure these are all day events, so if it was an hour early it would move back a day. I haven't touched the daylight savings time on my phone though. I would think it's correct.
NP
Co-Developer
Beiträge: 525
Registriert: Di 9. Jan 2007, 13:48
Wohnort: Bonn, Deutschland

Beitrag von NP »

I have seen this problem with ics-files that do not contain correct timezone strings. Thunderbird up to 0.7 will import them as "floating", which will make whole day events appear correct. However, on export to MPE I have to convert them to the local timezone and things will break.

Please post an event from the ics file so we can see wether this is the case here.
NP
K800i
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

NP
Co-Developer
Beiträge: 525
Registriert: Di 9. Jan 2007, 13:48
Wohnort: Bonn, Deutschland

Beitrag von NP »

Interesting, I never tried to sync holiday calendars with my phone.

As I suspected, these events do not contain timezone info - meaning they are in the "floating" timezone.

I will have to check what my current plugin code does to them on export and maybe rework the code.
NP
K800i
NP
Co-Developer
Beiträge: 525
Registriert: Di 9. Jan 2007, 13:48
Wohnort: Bonn, Deutschland

Beitrag von NP »

1) Please install the latest Mozilla-Addin (not yet in the MPE installer) from:

http://www.pueschel.net/mpe/mpe-addin.xpi

2) If the problem persists: Please tell me exactly what you have imported where and where the times are off. You said something about a Google calendar - maybe the problem lies there.
NP
K800i
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

It seems like the problem persists. It still doesn't sync using the .ics file I have linked above. That's the one I imported directly into Thunderbird, google is not involved at all.

The google public calendar also remains syncing a day earlier. I'm not sure how to link to that file, because it only gives me an opion to "add to calendar".

It's the US Holidays calendar found here.

http://www.google.com/calendar/gallery?cat=HOLIDAY


I'm sure itmust have something to do with that timezone issue, because all of those (Netflix, video game release dates etc.) that I have tried do the same thing. It's not just with Holidays.
NP
Co-Developer
Beiträge: 525
Registriert: Di 9. Jan 2007, 13:48
Wohnort: Bonn, Deutschland

Beitrag von NP »

OK, then let's forget Google for now. If we can fix the problem with the imported ICS-file, the other problem might go away as well.

The trouble is, I have imported the ICS-File in a test calendar and could sync it with MPE correctly without any problems.

Please check the timezone setting in Lightning again. The ICS-File contains no timezone information; on import, Thunderbird converts these events to UTC. My event export code checks for whole day events and should do some magic to convert them correctly to your local timezone, but this will work only if it is set correctly in Lightning (and your Windows and MPE have the same timezone).
NP
K800i
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

Nope, still added them a day early.
I double checked everything. My timezones are set up correctly.

Here's what I tried next. I deleted all the "holiday" calendars. I then had MPE calculate the holidays itself. They showed up in the MPE calendar, but then they would not sync into Thunderbird or my phone. No error message was given either. Is it supposed to?
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

Ok, so it's getting stranger.

I have all my holiday calendars deleted. I unchecked MPE to make my holidays. There are NO holidays on either Thunderbird OR MPE.

I checked the box to "sync all events" (it was checked to sync the last 30 days and next 90)

When I went to sync, it wants to add double entries of all the holidays (dates are still wrong) to my phone. I don't know where it would be getting that info from.

As I closed everything, this error code popped up in Thunderbird

Error: Components is not defined
Source File: chrome://calendar/content/calendar-minimonth-busy.js
Line: 66
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

I deleted all my calendars from Thunderbird, except for the default PC. There aren't any events on my calendar. When I sync, says it can't load thunderbird entries and I get the following errors.

Error: [Exception... "'Calender http://www.google.com/calendar/feeds/pl ... *eed/basic not found!' when calling method: [mpeIMyPhoneExplorer::WriteItems]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: file:///C:/Documents%20and%20Settings/**edited**/Thunderbird/Profiles/kzwmjtnb.default/extensions/myphoneexplorer@fjsoft.at/components/mpecli.js :: handler_handle :: line 95" data: no]
Source File: file:///C:/Documents%20and%20Settings/**edited**/Thunderbird/Profiles/kzwmjtnb.default/extensions/myphoneexplorer@fjsoft.at/components/mpecli.js
Line: 95



Error: Exception caught during -mpe export-items: [Exception... "'Calender http://www.google.com/calendar/feeds/** ... eeed/basic not found!' when calling method: [mpeIMyPhoneExplorer::WriteItems]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: file:///C:/Documents%20and%20Settings/Dave/Application%20Data/Thunderbird/Profiles/kzwmjtnb.default/extensions/myphoneexplorer@fjsoft.at/components/mpecli.js :: handler_handle :: line 95" data: no]
Source File: file:///C:/Documents%20and%20Settings/Dave/Application%20Data/Thunderbird/Profiles/kzwmjtnb.default/extensions/myphoneexplorer@fjsoft.at/components/mpecli.js
Line: 122

It looks like it's still looking for a google calendar that I removed or something.

If I change it from "sync all events" the ghost holidays do not want to sync any longer.
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

UGH, I think I killed it.

Now nothing will sync. I have a thunderbird calendar full of events and the sync process completes with no errors, but nothing is placed on my MPE calendar or in my phone.
NP
Co-Developer
Beiträge: 525
Registriert: Di 9. Jan 2007, 13:48
Wohnort: Bonn, Deutschland

Beitrag von NP »

Whoa, slow down....

Did you re-select your calendars for syncing in the MPE settings after you changed them? What is the output of

thunderbird -mpe list-cals=c:\cals.txt

now? BTW, the internal holidays in MPE are not meant to sync, they are just for your planning when you use MPE as you calendaring application, so they won't help you.

Do you have the sync confirmation window enabled in MPE, so that you can see that MPE wants to sync?
NP
K800i
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

OK, so here's what happened. After I switched from syncing "all events" back to "30 days before, 30 days after" my sync log came up and said it wanted to delete all my organizer dates from my phone, but they were also a day early. Example: something on February 8th in Thunderbird. MPE said it was on the 7th. Since it had a discrepancy it wanted to delete it from the phone. I let it delete them.

Now, when I go to resync, it goes through all the steps and acts like it syncs fine, however none of my events from Thunderbird (now just a local calendar and my Google calendar) will show up in MPE or My phone. There are no error messages in MPE or Thunderbird.

My default Calendar is "Online"(that's my Google calendar). My local Calendar is "PC" This is what the c:txt shows.

PC moz-profile-calendar://?id=2 RW #A8C2E1
Online http://www.google.com/calendar/feeds/pl ... eeed/basic RW #A8C2E1

it looks similar to my last problem where it still thinks my "PC" calendar is the default. When I change the default, my .txt file stays the same.

I am using that addin 9.20
NP
Co-Developer
Beiträge: 525
Registriert: Di 9. Jan 2007, 13:48
Wohnort: Bonn, Deutschland

Beitrag von NP »

The cals.txt is not supposed to change when you change your default calendar.

HKEY_CURRENT_USER\Software\MyPhoneExplorer\Mozilla\Calendar

shows the default calendar as first entry.

If you export your calendar items manually using:

thunderbird -mpe export-items=c:\items.txt

Do you get all your calendar entries as expected?
NP
K800i
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

This is my .txt file

AddOn-Version=0.9.20
ITYPE:TODO;CALID:moz-profile-calendar=3A//=3Fid=3D2;ITMID:2c7368b5-c52c-443c-a1c9-f4da2e0d0a0a;TITLE:Test=20task=20PC;CMPLT:NO;CTIME:1201898149;MTIME:1201898162;PRIOR:0
ITYPE:TODO;CALID:moz-profile-calendar=3A//=3Fid=3D2;ITMID:500a7140-1cac-4e29-a2c8-ce55f01d20cf;TITLE:Test=20task=202;CMPLT:NO;CTIME:1201898182;MTIME:1201898198;PRIOR:0
ITYPE:EVENT;CALID:http=3A//www.google.com/calendar/feeds/plarval=2540gmail.com/private-8cf064be26fc4a5b8ef19d86b17aeeed/basic;ITMID:248tijglnnct237uu2roqj0vas;TITLE:Grade=20cards=20go=20home;SDATE:D1208217600;EDATE:D1208304000;CTIME:1202241922;MTIME:1202241922;PRIOR:0;PRVCY:PRIVATE;STATS:CONFIRMED;ALTYP:START;ALOFF:-600
ITYPE:EVENT;CALID:http=3A//www.google.com/calendar/feeds/plarval=2540gmail.com/private-8cf064be26fc4a5b8ef19d86b17aeeed/basic;ITMID:av3unp5edel7vrr6jqk2630ct0;TITLE:Grade=20cards=20Final=20Print;SDATE:D1208131200;EDATE:D1208217600;CTIME:1202241910;MTIME:1202241910;PRIOR:0;PRVCY:PRIVATE;STATS:CONFIRMED;ALTYP:START;ALOFF:-600
NP
Co-Developer
Beiträge: 525
Registriert: Di 9. Jan 2007, 13:48
Wohnort: Bonn, Deutschland

Beitrag von NP »

OK, so you have two Tasks in your local calendar and two events in your Google calendar, fine.

And the addin exports them just fine. And they do not appear in confirmation window when you start the calendar sync? (HOW do you start the sync, by the way?)

Have you reloaded your MPE calendar from your mobile phone (sometimes it gets out of sync)?

Have you checked the exception list for calendar sync? Do you have the latest DebugUpdate of MyPhoneExplorer installed (MPE 1.6.6 is buggy regarding Mozilla Sync)?
NP
K800i
plarval
Beiträge: 27
Registriert: Di 29. Jan 2008, 04:45

Beitrag von plarval »

Sorry, I wasn't very thorough with my reply. I have a bunch of events on my google calendar/thunderbird, but those are the only two that show up in MPE. There are many more.

There are only two tasks, and they seem to sync fine.

I don't get any kind of confirmation window. If I add events to any calendar, or to phone, nothing syncs in either direction, but I still don't get any confimation windows or error messages. As it syncs, all check marks appear next to the tasks, no "x's".

I have installed the debug.exe that was posted for my last problem.

I sync by choosing the multi sync option from the extras drop down.
Antworten