moldybeats / stormcows

DEPRECATED - A Thunderbird/Lightning extension that allows two-way access between Remember The Milk tasks and Lightning calendar events.
https://addons.mozilla.org/en-US/thunderbird/addon/stormcows/
9 stars 2 forks source link

RTM Task shown one day too early in TB calendar & task list #9

Open sronsiek opened 10 years ago

sronsiek commented 10 years ago

I created a task on the RTM web-site under the 'Work' tab, then set the due date to Sat 24th May 2014.

When the task is synced to my Thunderbird cal, it appears on the Fri 23rd May 2014.

I changed the due date in RTM to Sun 25th May, after sync in TB it moves (as expected) but again appears one day earlier than it should, Sat 24th.

In Thunderbirds Task pane, the same items also appear a day early - as in the calandar.

Thunderbird & RTM appear to be 1 day out of sync.

Linux Mint 16 Thunderbird 24.4.0 Lightning 2.6.5 StormCows 0.3

moldybeats commented 10 years ago

Could this be a timezone mismatch issue? Probably the easiest way to check is to create a task in RTM that has a due time (eg. "today at 7:00pm") and see how this shows up in Thunderbird. If you find that it's off by only an hour or two, check the timezone settings for RTM, Thunderbird and your OS and make sure everyone's on the same page.

Let me know what you find.

sronsiek commented 10 years ago

You may be right - not sure. I did the following:

Open RTM in browser. It displays the correct date + time (as per the TZ where I live) top right in the browser.

The tasks I had created all had NO time - I had specified date only. These are all displayed a day early in TB

My PC time & TZ is correct, and matches that displayed on the RTM page, eg

Thu May 22 08:51:45 CEST 2014

However when I add a time to the task in RTM & sync - the day is corrected to the right day in TB. The following time were tested:

0 - ie 12am 00:10 some in between 23:45

at some in between. I seems that ANY time spec works, but leaving the time out is a problem. Maybe not a TZ issue.

What is the default event time on RTM if none is specified?

cheers, Stefan

On 22/05/14 05:43, moldybeats wrote:

Could this be a timezone mismatch issue? Probably the easiest way to check is to create a task in RTM that has a due time (eg. "today at 7:00pm") and see how this shows up in Thunderbird. If you find that it's off by only an hour or two, check the timezone settings for RTM, Thunderbird and your OS and make sure everyone's on the same page.

Let me know what you find.

— Reply to this email directly or view it on GitHub https://github.com/moldybeats/stormcows/issues/9#issuecomment-43845793.

moldybeats commented 10 years ago

The default due time is midnight (00:00), and this is what might cause this kind of problem. If there's a timezone mismatch of 1 hour, a task due at midnight on May 25 could be due on May 24 at 11pm in RTM (but you wouldn't see the 11pm part).

When you added a time to your tasks in Thunderbird, and they showed on the correct day in RTM, did they have the correct time as well? When you set the due time to 23:45, did it show as 23:45 in both places, for example?

sronsiek commented 10 years ago

On 26/05/14 00:08, moldybeats wrote:

The default due time is midnight (00:00), and this is what might cause this kind of problem. If there's a timezone mismatch of 1 hour, a task due at midnight on May 25 could be due on May 24 at 11pm in RTM (but you wouldn't see the 11pm part).

When you added a time to your tasks in Thunderbird, and they showed on the correct day in RTM, did they have the correct time as well? When you set the due time to 23:45, did it show as 23:45 in both places, for example?

Ok - first: The due time in RTM maps to the Start Time of an event in TB.

When I create an Event in TB for 8th June (no time) - it creates the correct corresponding item in RTM (same date).

If I now press the synchronise button in TB - the event in TB moves to the 7th. So it's an update from the RTM server that introduces the problem.

If I now set the start time of the event in TB to 18:00 - the RTM is also set to 18:00, but the date changes to the 7th (because TB sends the 7th as the date). This is consistent with the first test: Date only or date+time set in TB are correctly reflected in RTM.

Changing the time in RTM to 23:45 is correctly reflected in TB (in fact the start time is 23:45, but since the event in TB is one hr long by default, it spans from 7th 23:45 to 8th 00:45).

To conclude: when times are set, they are shown consistently on both sides.

When no time is used, the message from RTM to TB seems to contain the incorrect date, ie one day earlier.

This sounds more like a bug than a TZ issue to me.

cheers, Stefan

— Reply to this email directly or view it on GitHub https://github.com/moldybeats/stormcows/issues/9#issuecomment-44146889.

moldybeats commented 10 years ago

Sorry, I'm a little stumped on this. So far I haven't been able to reproduce it. My tasks are showing up on the right day regardless of whether they have a time or not, or whether I make the change in RTM or in TB.

I'll keep playing with it.

palmheads commented 9 years ago

Hi - I also see this exact same issue. If I create a task in RTM with duedate of today, in thunderbird/lightning tasks, the task appears in previous day (so its overdue).

However if I create a task in RTM with duedate of today, with a future time that same day, the tasks appears on the right day

Running ubuntu. New Zealand Time Zone (UTC+12:00)

cheers Daryn