зеркало из https://github.com/github/ruby.git
* strftime.c (rb_strftime_with_timespec): Test yday range.
[ruby-core:44088] [Bug #6247] reported by Ruby Submit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
387b42053f
Коммит
14e72b1cde
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Apr 7 01:01:26 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* strftime.c (rb_strftime_with_timespec): Test yday range.
|
||||||
|
[ruby-core:44088] [Bug #6247] reported by Ruby Submit.
|
||||||
|
|
||||||
Sat Apr 6 23:46:54 2013 Naohisa Goto <ngotogenome@gmail.com>
|
Sat Apr 6 23:46:54 2013 Naohisa Goto <ngotogenome@gmail.com>
|
||||||
|
|
||||||
* configure.in (AC_CHECK_HEADERS): atomic.h for Solaris atomic_ops.
|
* configure.in (AC_CHECK_HEADERS): atomic.h for Solaris atomic_ops.
|
||||||
|
|
|
@ -363,7 +363,8 @@ rb_strftime_with_timespec(char *s, size_t maxsize, const char *format, rb_encodi
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case 'j': /* day of the year, 001 - 366 */
|
case 'j': /* day of the year, 001 - 366 */
|
||||||
FMT('0', 3, "d", vtm->yday);
|
i = range(1, vtm->yday, 366);
|
||||||
|
FMT('0', 3, "d", (int)i);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case 'm': /* month, 01 - 12 */
|
case 'm': /* month, 01 - 12 */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче