Skip to content
Snippets Groups Projects
Commit c830577e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Handle files where the 'added' property is 0 or undefined

parent 6fc9a4c2
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,8 @@ function file_size(file)
function file_date(file)
{
if(!file.added)
return "";
return "<div title='" + system.timestr(file.added) + "'>"
+ strftime("%b %d, %Y", file.added) + "</div>";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment