mirror of
https://github.com/esiur/esiur-js.git
synced 2025-05-06 12:32:58 +00:00
Date Fix
This commit is contained in:
parent
270474ac78
commit
551f0f4684
@ -646,9 +646,13 @@ export default class DC extends Uint8Array
|
||||
|
||||
setDateTime(offset, value, endian)
|
||||
{
|
||||
if (!isNaN(value)){
|
||||
// Unix Epoch
|
||||
var ticks = 621355968000000000 + (value.getTime() * 10000);
|
||||
this.setUint64(offset, ticks, endian);
|
||||
} else {
|
||||
this.setUint64(offset, 0, endian);
|
||||
}
|
||||
}
|
||||
|
||||
getDateTime(offset, endian)
|
||||
|
Loading…
x
Reference in New Issue
Block a user