Ticket #389 (closed defect: duplicate)
otimed sets timezone incorrectly in large countries
| Reported by: | mmontour | Owned by: | jluebbe |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | framework/otimed | Version: | |
| Keywords: | localtime zoneinfo | Cc: |
Description
otimed is currently obtaining an ISO country code from GSM and then setting the timezone (/etc/localtime) by looking up the country code in /usr/share/zoneinfo/zone.tab and taking the first matching row. This does not work correctly in countries like Canada that span more than one timezone. My Freerunner insists that it is in Newfoundland although it is actually on the other side of the continent in Vancouver.
A secondary note - I originally had /etc/localtime as a symlink to /usr/share/zoneinfo/Canada/Pacific. When otimed did its update, this clobbered the Canada/Pacific? file with the America/St_Johns one. I'm willing to accept a resolution of "well, don't use a symlink there" but I thought it was worth mentioning this.
The package version on my phone is "frameworkd - 0.8.5.1+gitr5+e68f539c4b2e5a22da3f5c30d0b2591b81960718-r0". This was built locally with OE, not from a standard distro, but I have checked that this code fragment in _handleNetworkInfoReply() is the same in the current git.freesmartphone.org tree.
