Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
041b8f69
Commit
041b8f69
authored
Dec 29, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command: use gmtime() on WIN32
gmtime_r() is not available.
parent
b5c5a6b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
command.c
src/command.c
+8
-1
No files found.
src/command.c
View file @
041b8f69
...
...
@@ -257,14 +257,21 @@ print_spl_list(struct client *client, GPtrArray *list)
struct
stored_playlist_info
*
playlist
=
g_ptr_array_index
(
list
,
i
);
time_t
t
;
#ifndef WIN32
struct
tm
tm
;
#endif
char
timestamp
[
32
];
client_printf
(
client
,
"playlist: %s
\n
"
,
playlist
->
name
);
t
=
playlist
->
mtime
;
strftime
(
timestamp
,
sizeof
(
timestamp
),
"%FT%TZ"
,
gmtime_r
(
&
t
,
&
tm
));
#ifdef WIN32
gmtime
(
&
t
)
#else
gmtime_r
(
&
t
,
&
tm
)
#endif
);
client_printf
(
client
,
"Last-Modified: %s
\n
"
,
timestamp
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment