mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-03 17:14:21 +08:00
obexd: gmtime() already converts localtime to UTC time, so just adding 'Z' to time string.
This commit is contained in:
parent
858703e7a4
commit
efae2b88f7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user