diff --git a/pywb/static/wb.js b/pywb/static/wb.js index dc482a5c..e186f1df 100644 --- a/pywb/static/wb.js +++ b/pywb/static/wb.js @@ -63,8 +63,12 @@ this.create_banner_element = function() { this.ts_to_date = function(ts, is_gmt) { + if (!ts) { + return ""; + } + if (ts.length < 14) { - return ts; + ts += "00000000000000".substr(ts.length); } var datestr = (ts.substring(0, 4) + "-" +