aboutsummaryrefslogtreecommitdiff
path: root/unixtime.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-16 19:07:56 +0200
committerJavier <dev.git@javispedro.com>2022-04-16 19:07:56 +0200
commita1e1986f4946b2aaa990dbbe8a83062f690db660 (patch)
tree09fc91806e23d5541a1417b30068e09960ef70c6 /unixtime.h
parent2f9f452bf7ad33e92c87c35a36b246b3bb7de5b9 (diff)
downloadvbados-a1e1986f4946b2aaa990dbbe8a83062f690db660.tar.gz
vbados-a1e1986f4946b2aaa990dbbe8a83062f690db660.zip
fix negative timezone support
Diffstat (limited to 'unixtime.h')
-rw-r--r--unixtime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unixtime.h b/unixtime.h
index 92e2b0c..fe57394 100644
--- a/unixtime.h
+++ b/unixtime.h
@@ -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 */