ruby-changes:23326
From: nobu <ko1@a...>
Date: Wed, 18 Apr 2012 10:23:10 +0900 (JST)
Subject: [ruby-changes:23326] nobu:r35377 (trunk): * strftime.c (rb_strftime_with_timespec): add an interim digit for
nobu 2012-04-18 10:23:00 +0900 (Wed, 18 Apr 2012) New Revision: 35377 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35377 Log: * strftime.c (rb_strftime_with_timespec): add an interim digit for the timezone offset which is less than an hour. Modified files: trunk/ChangeLog trunk/strftime.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35376) +++ ChangeLog (revision 35377) @@ -1,3 +1,8 @@ +Wed Apr 18 10:22:54 2012 Nobuyoshi Nakada <nobu@r...> + + * strftime.c (rb_strftime_with_timespec): add an interim digit for + the timezone offset which is less than an hour. + Wed Apr 18 09:58:29 2012 Eric Hodel <drbrain@s...> * lib/rubygems/version.rb: Fixed init_with warning by calling into Index: strftime.c =================================================================== --- strftime.c (revision 35376) +++ strftime.c (revision 35377) @@ -493,9 +493,9 @@ sign = +1; } i = snprintf(s, endp - s, (padding == ' ' ? "%+*ld" : "%+.*ld"), - precision + 1, sign * (off / 3600)); + precision + 2, sign * (off / 360 + 1)); if (i < 0) goto err; - s += i; + s += i - 1; off = off % 3600; if (1 <= colons) *s++ = ':'; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/