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?
Similar problems, if not worse, occur with the DaylightSavingTime - can it be determined prior to OS 4.0, or must I ask the user if he's under DST? The prefDaylightsavings preference available under OS 3.0-35 returns an enum to a list of countries, but that doesn't tell me whether DTS is currently on. No Glue API seems to do the trick. Suggestions welcome. -- Luc Le Blanc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
