[前][次][番号順一覧][スレッド一覧]

ruby-changes:1693

From: ko1@a...
Date: 22 Aug 2007 10:28:20 +0900
Subject: [ruby-changes:1693] shyouhei - Ruby:r13184 (ruby_1_8_6): * time.c (time_succ): Time#succ should return a time object in the

shyouhei	2007-08-22 10:28:12 +0900 (Wed, 22 Aug 2007)

  New Revision: 13184

  Modified files:
    branches/ruby_1_8_6/ChangeLog
    branches/ruby_1_8_6/time.c
    branches/ruby_1_8_6/version.h

  Log:
    * time.c (time_succ): Time#succ should return a time object in the
      same timezone mode to the original.  [ruby-talk:260256]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=13184&r2=13183
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=13184&r2=13183
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/time.c?r1=13184&r2=13183

Index: ruby_1_8_6/time.c
===================================================================
--- ruby_1_8_6/time.c	(revision 13183)
+++ ruby_1_8_6/time.c	(revision 13184)
@@ -1397,9 +1397,14 @@
     VALUE time;
 {
     struct time_object *tobj;
+    int gmt;
 
     GetTimeval(time, tobj);
-    return rb_time_new(tobj->tv.tv_sec + 1, tobj->tv.tv_usec);
+    gmt = tobj->gmt;
+    time = rb_time_new(tobj->tv.tv_sec + 1, tobj->tv.tv_usec);
+    GetTimeval(time, tobj);
+    tobj->gmt = gmt;
+    return time;
 }
 
 /*
Index: ruby_1_8_6/ChangeLog
===================================================================
--- ruby_1_8_6/ChangeLog	(revision 13183)
+++ ruby_1_8_6/ChangeLog	(revision 13184)
@@ -1,3 +1,8 @@
+Wed Aug 22 10:26:59 2007  Yukihiro Matsumoto  <matz@r...>
+
+	* time.c (time_succ): Time#succ should return a time object in the
+	  same timezone mode to the original.  [ruby-talk:260256]
+
 Wed Aug 22 10:24:00 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* numeric.c (fix_pow): integer power calculation: 0**n => 0, 
Index: ruby_1_8_6/version.h
===================================================================
--- ruby_1_8_6/version.h	(revision 13183)
+++ ruby_1_8_6/version.h	(revision 13184)
@@ -2,7 +2,7 @@
 #define RUBY_RELEASE_DATE "2007-08-22"
 #define RUBY_VERSION_CODE 186
 #define RUBY_RELEASE_CODE 20070822
-#define RUBY_PATCHLEVEL 68
+#define RUBY_PATCHLEVEL 69
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]