aboutsummaryrefslogtreecommitdiffstats
path: root/ext/date/date_core.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-24 12:16:07 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-24 12:16:07 +0000
commit66f913572682f54eda3b0d4b78c5e9cef08043dd (patch)
tree4dc7ffe6126f53d56731e3e46040d5baaa05530e /ext/date/date_core.c
parent9e0683523ac1a995b9c30c94115d2cb66f2d76bb (diff)
downloadruby-66f913572682f54eda3b0d4b78c5e9cef08043dd.tar.gz
* ext/date/date_core.c: [ruby-core:52303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r--ext/date/date_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index 37d00d177e..f898c46aa2 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -7765,7 +7765,7 @@ datetime_s_now(int argc, VALUE *argv, VALUE klass)
of = tm.tm_gmtoff;
#elif defined(HAVE_VAR_TIMEZONE)
#ifdef HAVE_VAR_ALTZONE
- of = (long)((tm.tm_isdst > 0) ? altzone : timezone);
+ of = (long)-((tm.tm_isdst > 0) ? altzone : timezone);
#else
of = (long)-timezone;
if (tm.tm_isdst) {