aboutsummaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-04-24 14:46:23 -0500
committerDan Williams <dcbw@redhat.com>2013-04-25 15:14:14 -0500
commit2e8866c8b74c50c3c5318b13cfc78530a6130c41 (patch)
tree3a2ddd5f913952ce12089c55521921ebab77505d /introspection
parent7d3a4aba4fb0f7920e40f88836698a0a10bc7e3c (diff)
time: normalize GetNetworkTime() response to local time + timezone info (bgo #697372)
The GetNetworkTime() response is defined to be an ISO8601 string, which is in turn defined to be in local time. Make sure that's reflected in the documentation, and append the timezone offset to UTC where we have it. Oddly, Icera devices return their time info in UTC with an offset to the local timezone, so we have to jump through some hoops there to convert the response to localtime based on the reported offset. Some additional fixes by Aleksander Morgado <aleksander@lanedo.com>. https://bugzilla.gnome.org/show_bug.cgi?id=697372
Diffstat (limited to 'introspection')
-rw-r--r--introspection/org.freedesktop.ModemManager1.Modem.Time.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Time.xml b/introspection/org.freedesktop.ModemManager1.Modem.Time.xml
index 5278c774..0558f029 100644
--- a/introspection/org.freedesktop.ModemManager1.Modem.Time.xml
+++ b/introspection/org.freedesktop.ModemManager1.Modem.Time.xml
@@ -20,9 +20,11 @@
<!--
GetNetworkTime:
- @time: If the network time is known, a string containing date and time in ISO 8601 format. If the network time is unknown, the empty string.
+ @time: If the network time is known, a string containing local date,
+ time, and (if available) UTC offset in ISO 8601 format. If the network
+ time is unknown, the empty string.
- Gets the current network time.
+ Gets the current network time in local time.
This method will only work if the modem tracks, or can request, the
current network time; it will not attempt to use previously-received