1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

wb.js: pad timestamp to 14 digits

This commit is contained in:
Ilya Kreymer 2016-02-25 18:25:28 -08:00
parent e6361c58ac
commit c76aa17b78

View File

@ -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) + "-" +