X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Ftime.c;h=b980ba15c4ffb2e4271fba49a129c5618ce991ed;hb=d970a7aa8be2cfdc15c340382b99ef9db4428df3;hp=716e7d8d39ea20f3556222014209f95e1f4745cd;hpb=020de3c04699323437f0c746fe986506b716ab97;p=sbcl.git diff --git a/src/runtime/time.c b/src/runtime/time.c index 716e7d8..b980ba1 100644 --- a/src/runtime/time.c +++ b/src/runtime/time.c @@ -15,6 +15,7 @@ #include #include +#include "sbcl.h" #include "runtime.h" void get_timezone(time_t when, int *secwest, boolean *dst) @@ -27,9 +28,9 @@ void get_timezone(time_t when, int *secwest, boolean *dst) sw = (((gtm.tm_hour*60)+gtm.tm_min)*60+gtm.tm_sec) - (((ltm.tm_hour*60)+ltm.tm_min)*60+ltm.tm_sec); if ((gtm.tm_wday + 1) % 7 == ltm.tm_wday) - sw -= 24*3600; + sw -= 24*3600; else if (gtm.tm_wday == (ltm.tm_wday + 1) % 7) - sw += 24*3600; + sw += 24*3600; *secwest = sw; *dst = ltm.tm_isdst; }