From efae2b88f71d9a2914bcf0b2ab39f3c7b760076d Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 7 Jul 2008 17:03:07 -0300 Subject: [PATCH] obexd: gmtime() already converts localtime to UTC time, so just adding 'Z' to time string. --- obexd/src/ftp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/obexd/src/ftp.c b/obexd/src/ftp.c index f656e53fa..e27954dec 100644 --- a/obexd/src/ftp.c +++ b/obexd/src/ftp.c @@ -76,7 +76,7 @@ static gchar *file_stat_line(gchar *filename, struct stat *fstat, struct stat *dstat) { - gchar perm[51], atime[17], ctime[17], mtime[17]; + gchar perm[51], atime[18], ctime[18], mtime[18]; gchar *escaped, *ret; snprintf(perm, 50, "user-perm=\"%s%s%s\" group-perm=\"%s%s%s\" " @@ -91,9 +91,9 @@ static gchar *file_stat_line(gchar *filename, struct stat *fstat, (fstat->st_mode & S_IWOTH ? "W" : ""), (dstat->st_mode & S_IWOTH ? "D" : "")); - strftime(atime, 16, "%Y%m%dT%H%M%S", gmtime(&fstat->st_atime)); - strftime(ctime, 16, "%Y%m%dT%H%M%S", gmtime(&fstat->st_ctime)); - strftime(mtime, 16, "%Y%m%dT%H%M%S", gmtime(&fstat->st_mtime)); + strftime(atime, 17, "%Y%m%dT%H%M%SZ", gmtime(&fstat->st_atime)); + strftime(ctime, 17, "%Y%m%dT%H%M%SZ", gmtime(&fstat->st_ctime)); + strftime(mtime, 17, "%Y%m%dT%H%M%SZ", gmtime(&fstat->st_mtime)); escaped = g_uri_escape_string(filename, " ", TRUE);