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:
parent
e6361c58ac
commit
c76aa17b78
@ -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) + "-" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user