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
0a9b0dd0
Commit
0a9b0dd0
authored
May 18, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command: fallback strftime() formats on WIN32
On WIN32, "%F" and "%T" are not implemented.
parent
6aa0f61e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
command.c
src/command.c
+4
-2
song_print.c
src/song_print.c
+7
-1
No files found.
src/command.c
View file @
0a9b0dd0
...
...
@@ -387,10 +387,12 @@ print_spl_list(struct client *client, GPtrArray *list)
client_printf
(
client
,
"playlist: %s
\n
"
,
playlist
->
name
);
t
=
playlist
->
mtime
;
strftime
(
timestamp
,
sizeof
(
timestamp
),
"%FT%TZ"
,
#ifdef WIN32
strftime
(
timestamp
,
sizeof
(
timestamp
),
#ifdef G_OS_WIN32
"%Y-%m-%dT%H:%M:%SZ"
,
gmtime
(
&
t
)
#else
"%FT%TZ"
,
gmtime_r
(
&
t
,
&
tm
)
#endif
);
...
...
src/song_print.c
View file @
0a9b0dd0
...
...
@@ -79,7 +79,13 @@ song_print_info(struct client *client, struct song *song)
if
(
tm2
!=
NULL
)
{
char
timestamp
[
32
];
strftime
(
timestamp
,
sizeof
(
timestamp
),
"%FT%TZ"
,
tm2
);
strftime
(
timestamp
,
sizeof
(
timestamp
),
#ifdef G_OS_WIN32
"%Y-%m-%dT%H:%M:%SZ"
,
#else
"%FT%TZ"
,
#endif
tm2
);
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