mirror of
https://github.com/gchq/CyberChef
synced 2024-11-15 00:57:08 +00:00
Simplify to improve readability
This commit is contained in:
parent
40acf751a8
commit
050ab03448
1 changed files with 1 additions and 5 deletions
|
@ -207,11 +207,7 @@ ${extensions}`;
|
|||
*/
|
||||
function formatDate (dateStr) {
|
||||
if (dateStr.length === 13) { // UTC Time
|
||||
if (dateStr[0] < "5") {
|
||||
dateStr = "20" + dateStr;
|
||||
} else {
|
||||
dateStr = "19" + dateStr;
|
||||
}
|
||||
dateStr = (dateStr[0] < "5" ? "20" : "19") + dateStr;
|
||||
}
|
||||
return dateStr[6] + dateStr[7] + "/" +
|
||||
dateStr[4] + dateStr[5] + "/" +
|
||||
|
|
Loading…
Reference in a new issue