Skip to content

Comment on Hey Android, why no love for UTC?parent

Comments

On phones, http://developer.android.com/reference/android/telephony/Tel... is probably a better estimate of the user's home country and getNetworkCountryIso() is a good estimate of the user's current country. The fact that my Android phone doesn't have en_CA as a locale option (maybe because they're too cheap to localize the system apps for Canadians, who mix British and American spellings) means that anybody who tries to get the country from the locale region code won't recognize Canadians with this phone.

Thanks, assuming that doesn't require an extra permission, I'm going to use it this week!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.