mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 21:46:36 +00:00
Fix downloads hardcoded date parsing.
This commit is contained in:
parent
f13464c730
commit
2df5ead8f4
1 changed files with 2 additions and 0 deletions
|
|
@ -319,6 +319,8 @@
|
||||||
}
|
}
|
||||||
if (date.length != 14) {
|
if (date.length != 14) {
|
||||||
date = new Date($($(blobs[i]).find('Last-Modified')[0]).text());
|
date = new Date($($(blobs[i]).find('Last-Modified')[0]).text());
|
||||||
|
} else {
|
||||||
|
date = moment(date, "YYYYMMDDhhmmss").toDate();
|
||||||
}
|
}
|
||||||
var size = $($(blobs[i]).find('Content-Length')[0]).text();
|
var size = $($(blobs[i]).find('Content-Length')[0]).text();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue