While one hopes he does, it's not always a good assumption. But that aspect wasn't the intended focus of my remarks.
The point is -- the timezone SHOULD have absolutely ZERO impact on the actual calculated times. There are really only three ways to get an error here that I can see. (Chime in if you can come up with more!) * Using the wrong location. * Doing the wrong calculation. * Displaying with the wrong timezone (including DST errors, but that shouldn't be possible as a program error that I can see). A fourth possibility is a confused user; I'm not sure how to break down the possibilities there -- though using a TZ with different DST characteristics might be included. But I think the first step in sorting out the problem is to identify which problem you have, and that was why I was covering the territory. I hope the OP understands that I don't know any details of his knowledge or app, and can disregard any aspect of my message he's confident he's adequately eliminated! On Sat, Apr 23, 2011 at 8:40 AM, String <sterling.ud...@googlemail.com>wrote: > No offense, Bob (and I do mean that, I value your posts on this forum), but > I think we can safely assume that the OP knows how to calculate times of > sunrise and sunset. He's already showing that in his app, from the sound of > things, and is probably doing OK with that aspect. > > The issue at hand is how (and maybe whether) to work around a user having > set their phone to a different zone than the one they're actually in. Nobody > says this is affecting the absolute (UTC) time of sunrise/sunset in the > calculations, it's purely about display. > > String > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en