Re: Date changes when opening project in desktop
"roberto.penzo" <[email protected]> Sat, 28 Apr 2012 02:35:29 -0000
| Newsgroups | gmane.comp.handhelds.palm.shadow |
|---|---|
| Message-ID | <[email protected]> |
Hi Jeff.
My Shadow Plan Desktop falled into the old bug of the wrong dates.
The bug was first discovered on the year 2005 and you can find track of it on the current thread.
Jeff, you mentioned a alpha release that solves that bug; didi you got such a alpha to send me? If not, could you please look into that bug?
It should be easy to solve it: simply change Shadow Plan Desktop so as it should use the real date+hour (user timezone setting) instead of date+hour on the GMT-6 settings as on the current bugged Shadow Plan Desktop.
Please read below the true origin of the bug.
Many thanks.
Roberto.
----DETAILS ON WHY THIS BUG
I investigated a bit by decoding the XML file saved by Shadow Plan Desktop and I easily found that why the bug happens:
Shadow Desktop picks and uses as its date+hour always the timezone GMT-6, no matter the actual user setting of the timezone of the PC.
So:
-if I set the timezone of my PC to a GMT-6 (USA and Canada), NO BUG arises.
Example:
--> date+hour on PC after setting it on GMT-6 = 2012-04-27/08:42PM
--> date+hour on saved XML file = 3418404120 = 2012-04-27/08:42PM (no bug)
(for explanation on the coding rule for dates+hours, see below);
-if I set the timezone of my PC to my real timezone (GMT+1, Central Europe), every date+time saved by Shadow Plan Desktop is actually saved into XML file 7 hours earlier, thus still using the GMT-6 date+hour.
Example:
--> date+hour on PC after setting it on GMT+1 = 2012-04-28/03:42AM
--> date+hour on saved XML file = 3418404120 = 2012-04-27/08:42PM (BUG!, 7 hours earlier than the date+hour on the PC)
That is true for all date types:
-hhCreateTime
-hhTargetTime
-hhStartTime
-hhFinishTime
and for the selections:
-picker
-yesterday
-tomorrow
-day after tomorrow
-friday
-monday
-week from today
-next month
but not for the selection:
-plus one week (it simply adds 7 days to the previous date+hour)
Coding rule for XML date+hour:
-On XML file, every date+time is represented by the total number of seconds elapsed since the date+time 1904-01-01/00:00AM
-every XML date+time earlier than 1970-01-01/00:00AM is shown into Shadow Plan Desktop (and, I suppose on Shadow Plan on Handheld) as 1970-01-01/00:00AM.
--- In [email protected], Jeff Mitchell <skeezix@...> wrote:
>
> On Tue, 22 Nov 2005, blackbox77de wrote:
>
> # More on that date change bug:
> #
> # I created a small new project a couple of
> # days ago. I prepared the outline on my Palm,
> # synchronized and then put in a few dates. After
> # sychronizing again about half the dates had
> # changed by one day on the Palm. I didn't have
> # any times set at all.
> #
> # The time zones both on the Palm and my desktop
> # computer are set to -1 GMT. I'm running OS 4.1
> # my Palm.
>
> Should have a fix in a couple weeks; oir perhaps you want to sign
> up to the alpha group and let me know when you're there? :)
>
> jeff
>
> --
> If everyone would put barbecue sauce on their food, there would be no war.
>