summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-14 05:50:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-14 05:50:32 +0000
commite710c2c02503799eab339a8ecb20727e9093cd7b (patch)
tree11e33175cd4f48ec8a806ad6822ef4a7474d147f
parentfb8018fbdd3a503c3b0ba3a6af628c3b9807b179 (diff)
downloadruby-e710c2c02503799eab339a8ecb20727e9093cd7b.tar.gz
ruby-e710c2c02503799eab339a8ecb20727e9093cd7b.tar.xz
ruby-e710c2c02503799eab339a8ecb20727e9093cd7b.zip
2000-06-14
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--time.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9a7a2a3b3..d56c886de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jun 14 14:50:00 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
+
+ * time.c (make_time_t): opposite timezone shift (should be negative).
+
Wed Jun 14 14:07:38 2000 WATANABE Hirofumi <eban@os.rim.or.jp>
* io.c: typo(ig/if).
diff --git a/time.c b/time.c
index ad4ca2463..6fd2fee19 100644
--- a/time.c
+++ b/time.c
@@ -314,7 +314,7 @@ make_time_t(tptr, utc_or_local)
if (!utc_or_local) { /* localtime zone adjust */
#if defined(HAVE_TM_ZONE)
tm = localtime(&guess);
- guess += tm->tm_gmtoff;
+ guess -= tm->tm_gmtoff;
#else
struct tm gt, lt;
long tzsec;