projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf0b564
)
netreg: Report timezone updates if available
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 26 Dec 2010 19:47:32 +0000
(11:47 -0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 26 Dec 2010 19:47:32 +0000
(11:47 -0800)
drivers/atmodem/network-registration.c
patch
|
blob
|
history
diff --git
a/drivers/atmodem/network-registration.c
b/drivers/atmodem/network-registration.c
index
04b0d48
..
f18b9d7
100644
(file)
--- a/
drivers/atmodem/network-registration.c
+++ b/
drivers/atmodem/network-registration.c
@@
-698,8
+698,8
@@
static void ciev_notify(GAtResult *result, gpointer user_data)
static void ctzv_notify(GAtResult *result, gpointer user_data)
{
-
//
struct ofono_netreg *netreg = user_data;
-
//
struct netreg_data *nd = ofono_netreg_get_data(netreg);
+ struct ofono_netreg *netreg = user_data;
+ struct netreg_data *nd = ofono_netreg_get_data(netreg);
const char *tz;
GAtResultIter iter;
@@
-712,6
+712,10
@@
static void ctzv_notify(GAtResult *result, gpointer user_data)
return;
DBG("tz %s", tz);
+
+ nd->time.utcoff = atoi(tz) * 15 * 60;
+
+ ofono_netreg_time_notify(netreg, &nd->time);
}
static void ifx_ctzv_notify(GAtResult *result, gpointer user_data)