From 6d9bd02480a575615b0294a748e345cdeb5fbaec Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Mon, 5 Oct 2009 19:10:25 +0200 Subject: Migrate from RFC2822 to ISO8601 --- src/sms.c | 4 ++-- src/voicecall.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sms.c b/src/sms.c index 141f288e..e02ac857 100644 --- a/src/sms.c +++ b/src/sms.c @@ -467,11 +467,11 @@ static void dispatch_text_message(struct ofono_sms *sms, ts = sms_scts_to_time(scts, &remote); - strftime(buf, 127, "%a, %d %b %Y %H:%M:%S %z", localtime(&ts)); + strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(&ts)); buf[127] = '\0'; ofono_dbus_dict_append(&dict, "LocalSentTime", DBUS_TYPE_STRING, &str); - strftime(buf, 127, "%a, %d %b %Y %H:%M:%S %z", &remote); + strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", &remote); buf[127] = '\0'; ofono_dbus_dict_append(&dict, "SentTime", DBUS_TYPE_STRING, &str); diff --git a/src/voicecall.c b/src/voicecall.c index ef4c171a..a50bb661 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -164,7 +164,7 @@ static const char *time_to_str(const time_t *t) { static char buf[128]; - strftime(buf, 127, "%a, %d %b %Y %H:%M:%S %z", localtime(t)); + strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime(t)); buf[127] = '\0'; return buf; -- cgit v1.2.3