I have an app, that people use to scan barcodes, and send among other things, the scan time to a central server in California running Mysql. Right now, when I query the database, either by looking at the returned data from the phone, or looking at reports from the server, it looks as though all of the events happen on California time. I'm hoping for some guidance as to how to handle this situation.
Right now, I'm getting the current timestamp from the phone using: (new Date()).getTime()) to get what seems to be a GMT timestamp. On the server side i'm using this in python to get a datetime: datetime.datetime.fromtimestamp(timestamp) and using that result to insert values into datetime field in my database. When I look at the data from mysql, it appears as though the scan took place in California time. I need some help understanding all of this, and how to best display the time data to each user based on where they are. In the case of a phone, I imagine that I can get the timezone somewhere. In the case of a web report, I suppose I'll have to ask the user? Sorry for the lack of a concise specific question, but perhaps someone can shed some light on this whole concept for me. Thanks, Toby -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

