diff options
author | David Turner <digit@google.com> | 2009-08-22 09:04:28 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-08-22 09:04:28 -0700 |
commit | 61a902e46eebb3b75e03e7d4468040be9ae6b82b (patch) | |
tree | 042405a62ccd7f2e0bb973eaa2772c079c58b9ef | |
parent | a938a932ec28bd82ffbd99fb069f4fd03565c8fa (diff) | |
parent | 613d25b8c0fd1ab92c566d965e3cd7da85c31ee0 (diff) | |
download | hardware_libhardware_legacy-61a902e46eebb3b75e03e7d4468040be9ae6b82b.zip hardware_libhardware_legacy-61a902e46eebb3b75e03e7d4468040be9ae6b82b.tar.gz hardware_libhardware_legacy-61a902e46eebb3b75e03e7d4468040be9ae6b82b.tar.bz2 |
am 613d25b8: Fix a hideous bug in the GPS emulation.
Merge commit '613d25b8c0fd1ab92c566d965e3cd7da85c31ee0' into eclair
* commit '613d25b8c0fd1ab92c566d965e3cd7da85c31ee0':
Fix a hideous bug in the GPS emulation.
-rw-r--r-- | gps/gps_qemu.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gps/gps_qemu.c b/gps/gps_qemu.c index 249097d..5c06951 100644 --- a/gps/gps_qemu.c +++ b/gps/gps_qemu.c @@ -247,12 +247,13 @@ nmea_reader_update_time( NmeaReader* r, Token tok ) minute = str2int(tok.p+2, tok.p+4); seconds = str2float(tok.p+4, tok.end); - tm.tm_hour = hour; - tm.tm_min = minute; - tm.tm_sec = (int) seconds; - tm.tm_year = r->utc_year - 1900; - tm.tm_mon = r->utc_mon - 1; - tm.tm_mday = r->utc_day; + tm.tm_hour = hour; + tm.tm_min = minute; + tm.tm_sec = (int) seconds; + tm.tm_year = r->utc_year - 1900; + tm.tm_mon = r->utc_mon - 1; + tm.tm_mday = r->utc_day; + tm.tm_isdst = -1; fix_time = mktime( &tm ) + r->utc_diff; r->fix.timestamp = (long long)fix_time * 1000; |