From: matz@... (Yukihiro Matsumoto) Date: 1998-04-30T11:35:16+09:00 Subject: [ruby-list:7794] Re: Time.gm まつもと ゆきひろです In message "[ruby-list:7789] Time.gm" on 98/04/30, GOTO Kentaro writes: |ごとけんです | |ruby 1.1b9_16(98/04/28) [sparc-sunos4.1.4] ですが |Time.gm の挙動がおかしい様な気がします。 そうですね.せっかくgmtimeを使って計算したのにtimezoneを保存 するのを忘れているからのようです.パッチつけときます. --- time.c 1998/04/22 08:57:35 1.1.1.2.2.9 +++ time.c 1998/04/30 02:33:26 @@ -234,2 +234,4 @@ +static VALUE time_gmtime _((VALUE)); +static VALUE time_localtime _((VALUE)); static VALUE @@ -247,2 +249,3 @@ struct tm *(*fn)(); + VALUE time; @@ -274,3 +277,5 @@ - return time_new_internal(klass, guess, 0); + time = time_new_internal(klass, guess, 0); + if (gm_or_local) return time_gmtime(time); + return time_localtime(time);