improve treatment of Hex(little endian) for Windows Filetime converter

This commit is contained in:
MikeCAT 2022-11-02 23:14:48 +09:00
parent ed8bd34915
commit 3086c25079
2 changed files with 7 additions and 1 deletions

View file

@ -79,6 +79,9 @@ class UNIXTimestampToWindowsFiletime extends Operation {
flipped += result.charAt(i);
flipped += result.charAt(i + 1);
}
if (result.length % 2 !== 0) {
flipped += "0" + result.charAt(0);
}
result = flipped;
}