I'm have a similar problem.  When I grab a database from my device (a
database that was created on the device) and then read out the PDB file I
notice that the dates are based on seconds since 1970.  According to the PDB
spec it should be seconds since 1904.  I wonder if the HotSync is converting
the date formats?

When I create a PDB file on the desktop should I format the date fields for
seconds since 1970 or 1904?

Your seeing 1936 because of the difference between 1970 and 1904 is 66 years
and 2002 - 66 = 1936.

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message
news:92693@palm-dev-forum...
>
> I have written a desktop app the directly reads and write PDB files.
> Everything is working create except the create, modified and Backup Dates.
>
> When I create a new PDB with my desktop app, then install the PDB to my
> device, the dates are displayed correctly.  But if I read a PDB from my
> HotSync Backup directory into my desktop app the dates are wrong... more
> specifically the Month and Day is correct, but the year is always 1936 and
> the time is 5:00am.
>
> I have routines that do the bit swapping and they are working... hence the
> first example above.
>
> Am I missing something here?  Does the Default conduit mess up this date?
I
> have tried *not* swapping the UInt32 and that does not working either.  I
> have other UInt32(s) in my PDB record data and all the dateTimes (secs
since
> 1904) work great.
>
> Is is possible that I need to swap/flip bit differently for the UInt32(s)
> the PDB Header?
>
> Thanks
> -=Ryan
>
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to