summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorOlivier Le Thanh Duong <olivier.le.thanh@collabora.co.uk>2009-10-05 19:10:25 +0200
committerDenis Kenzior <denkenz@gmail.com>2009-10-21 19:04:47 -0500
commit6d9bd02480a575615b0294a748e345cdeb5fbaec (patch)
treee3af7f29a08daaeb2e0386cb7daad575622e0701 /plugins
parent1b13ce308f0aabefa2da63ac77c6035948d6b4d1 (diff)
downloadofono-6d9bd02480a575615b0294a748e345cdeb5fbaec.tar.bz2
Migrate from RFC2822 to ISO8601
Diffstat (limited to 'plugins')
-rw-r--r--plugins/example_history.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/example_history.c b/plugins/example_history.c
index 384c88dc..d923a8e0 100644
--- a/plugins/example_history.c
+++ b/plugins/example_history.c
@@ -68,11 +68,11 @@ static void example_history_call_ended(struct ofono_history_context *context,
else
ofono_debug("From: %s", from);
- strftime(buf, 127, "%a, %d %b %Y %H:%M:%S %z", localtime(&start));
+ strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(&start));
buf[127] = '\0';
ofono_debug("StartTime: %s", buf);
- strftime(buf, 127, "%a, %d %b %Y %H:%M:%S %z", localtime(&end));
+ strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(&end));
buf[127] = '\0';
ofono_debug("EndTime: %s", buf);
}
@@ -96,7 +96,7 @@ static void example_history_call_missed(struct ofono_history_context *context,
from = phone_number_to_string(&call->phone_number);
ofono_debug("From: %s", from);
- strftime(buf, 127, "%a, %d %b %Y %H:%M:%S %z", localtime(&when));
+ strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(&when));
buf[127] = '\0';
ofono_debug("When: %s", buf);
}