diff options
author | Javier <dev.git@javispedro.com> | 2022-04-16 19:07:56 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-16 19:07:56 +0200 |
commit | a1e1986f4946b2aaa990dbbe8a83062f690db660 (patch) | |
tree | 09fc91806e23d5541a1417b30068e09960ef70c6 /unixtime.h | |
parent | 2f9f452bf7ad33e92c87c35a36b246b3bb7de5b9 (diff) | |
download | vbados-a1e1986f4946b2aaa990dbbe8a83062f690db660.tar.gz vbados-a1e1986f4946b2aaa990dbbe8a83062f690db660.zip |
fix negative timezone support
Diffstat (limited to 'unixtime.h')
-rw-r--r-- | unixtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -69,7 +69,7 @@ static void timestampns_to_dos_time(uint16_t __far *dos_time, uint16_t __far *do /* eax now contains seconds_since_epoch / 2 */ xor edx, edx /* Discard the remainder (less than 2 seconds) */ - add eax, [tzoffset] /* Add tzoffset now (which is in seconds / 2 units) */ + sub eax, [tzoffset] /* Subtract tzoffset now (which is in seconds / 2 units) */ mov ecx, (24 * 60 * 60) / 2 /* seconds in one day / 2 */ |