Ticket #287: 0001-C_decode_seconds-should-report-zero-timezone-offset-.patch

File 0001-C_decode_seconds-should-report-zero-timezone-offset-.patch, 955 bytes (added by Jim Ursetto, 14 years ago)
  • runtime.c

    From 5a3a9396e43b93ed01f8bb21e3561836c9d6f2e6 Mon Sep 17 00:00:00 2001
    From: zbigniew <zbigniewsz@gmail.com>
    Date: Mon, 19 Jul 2010 12:04:14 -0500
    Subject: [PATCH] C_decode_seconds should report zero timezone offset for UTC
    
    ---
     runtime.c |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/runtime.c b/runtime.c
    index 4540c84..55eb2e8 100644
    a b void C_ccall C_decode_seconds(C_word c, C_word closure, C_word k, C_word secs, C 
    77437743                  /* negative for west of UTC, but we want positive */
    77447744                  C_fix(-tmt->tm_gmtoff)
    77457745#elif defined(__CYGWIN__) || defined(__MINGW32__) || defined(_WIN32) || defined(__WINNT__)
    7746                   C_fix(_timezone)
     7746                  C_fix(mode == C_SCHEME_FALSE ? _timezone : 0)
    77477747#else
    7748                   C_fix(timezone)
     7748                  C_fix(mode == C_SCHEME_FALSE ? timezone : 0)
    77497749#endif
    77507750                  );
    77517751  C_kontinue(k, info);