diff options
-rw-r--r-- | src/DatabasePrint.cxx | 3 | ||||
-rw-r--r-- | src/command.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx index 843d218cb..d22d4db8a 100644 --- a/src/DatabasePrint.cxx +++ b/src/DatabasePrint.cxx @@ -106,7 +106,8 @@ PrintPlaylistFull(struct client *client, { print_playlist_in_directory(client, directory, playlist.name); - time_print(client, "Last-Modified", playlist.mtime); + if (playlist.mtime > 0) + time_print(client, "Last-Modified", playlist.mtime); return true; } diff --git a/src/command.c b/src/command.c index 0856589b0..7bb49447d 100644 --- a/src/command.c +++ b/src/command.c @@ -119,7 +119,8 @@ print_spl_list(struct client *client, GPtrArray *list) client_printf(client, "playlist: %s\n", playlist->name); - time_print(client, "Last-Modified", playlist->mtime); + if (playlist->mtime > 0) + time_print(client, "Last-Modified", playlist->mtime); } } |