bartop

palmoswerks ARCHIVE
Palm OS programming tips from a (former) CodeWarrior insider

header

Navigation

Search
Home
About
Stories
Stuff I Like
Articles
PilRC
CodeWarrior
palmos.techwood.org
DevTools List
Palm OS Dev FAQ

Bugs in OS 4's Time Zone APIs

Over the weekend, a bug that affects Palm OS 4.0 and 4.1 surfaced. The two API calls, TimTimeZoneToUTC and TimUTCToTimeZone, have a flaw in their implementation that affects conversions when the time zone value is more than 9 hours off from UTC. It is a Int16 overflow bug that wasn't detected when the routine was coded.

If you need to use these functions, it would be best to just do your own implementation. If you have access to the Palm OS source code, its easy to code your own. Internally, they just do a computation, a mulitply and few additions or subtractions.

Update 1 Reappears

Palm OS SDK 4.0 update 1 reappeared on the PalmOS.com site this weekend. The post-linker in this release seems to be the same one that was posted before, so I'd advise that you install this patch manually, keeping the post-linker from SDK 4.0, but applying everything else.

brought to you by weblogger.com


Send feedback to combee@techwood.org
Copyright © 2004 Benjamin L. Combee
Palm OS is a registered trademark of PalmSource, Inc.
Metrowerks and CodeWarrior are registered trademarks of Metrowerks Inc.

The views expressed on this website/weblog are those of mine alone and do not necessarily reflect the views of PalmSource or Metrowerks.

This is a Manila Site

qwertYAK / frobnovich