The Android code only assumes UTC, except that you can use a small extension to the NITZ string to encode the timezone too. See the comment and implementation in handleOfInit() in external/qemu/telephony/android_modem.c here:
http://android.git.kernel.org/?p=platform/external/qemu.git;a=blob;f=telephony/android_modem.c;h=6e73411d9fdd706b8f369684c03451e6e8d7221a;hb=master On Fri, Mar 5, 2010 at 2:47 PM, ms12 <mstic...@gmail.com> wrote: > Ok, got that to work, thanks. > Discovered that the time comes back in local time zone, not UTC. > Android code assumes UTC. The timezone comes with it of course, but > if you don't know if it has already been applied, I would think it > difficult to determine in the code. Is there a standard for this? > Mike > > On Mar 3, 5:22 pm, David Turner <di...@android.com> wrote: > > Yes, you can use a NITZ unsolicited message. See > > hardware/ril/reference-ril/reference-ril.c:onUnsolicited() > > > > On Wed, Mar 3, 2010 at 2:25 PM, ms12 <mstic...@gmail.com> wrote: > > > Is there a way to set the system time from the cell phone? I've > > > searched ril.h and ril_commands.h and there seems to be no way to > > > request the time from the cell modem. Am I missing something? > > > > > Mike > > > > > -- > > > unsubscribe: > > > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > <android-porting%2bunsubscr...@googlegroups.com<android-porting%252bunsubscr...@googlegroups.com> > > > > > website:http://groups.google.com/group/android-porting > > > > > > -- > unsubscribe: > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-porting > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting