At 09:46 PM 3/22/2005, you wrote:
I previously wrote :

> I'm implementing GPS support in my program (location tracking). As a side benefit, I would like to offer to set the device time with the UTC time received from the GPS. Now, in order to adjust UTC time to local time, I need to call TimUTCToTimeZone, which in turn requires the number of minutes east of UTC (or a negative amount if West of UTC), which I can get with PrefGetPreference and prefMinutesWestOfGMT... a UInt32 (unsigned) amount! The prefTimeZone pref (an Int16) was later introduced with OS 4.0 and preferences version 9. What's the trick for PalmOS 3.0-3.5?

There is no trick with OS versions before 4.0. Those devices didn't have a time zone setting, so unless you provide your own time zone setting in your application, there's no way to convert the device time to UTC accurately.



-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/


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

Reply via email to