diff --git a/ChangeLog b/ChangeLog index 18d9bfa961..0890173a62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 18 08:47:09 2007 Yukihiro Matsumoto + + * time.c (time_succ): Time#succ should return a time object in the + same timezone mode to the original. [ruby-talk:260256] + Mon Jul 16 23:07:51 2007 Yukihiro Matsumoto * lib/base64.rb (Base64::b64encode): should not specify /o option diff --git a/time.c b/time.c index 21d8bbd45d..798696cb22 100644 --- a/time.c +++ b/time.c @@ -1337,9 +1337,14 @@ static VALUE time_succ(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; } /* diff --git a/version.h b/version.h index 6fc73c76c5..ec3495b06e 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-07-17" +#define RUBY_RELEASE_DATE "2007-07-18" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070717 +#define RUBY_RELEASE_CODE 20070718 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 7 -#define RUBY_RELEASE_DAY 17 +#define RUBY_RELEASE_DAY 18 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];