mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* time.c (time_to_s): fixed format mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a78b09b110
commit
41005d43a8
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Jul 27 22:21:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* time.c (time_to_s): fixed format mismatch.
|
||||
|
||||
Thu Jul 27 18:12:12 2006 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* time.c: need to declare time_utc_offset.
|
||||
|
|
2
time.c
2
time.c
|
@ -1221,7 +1221,7 @@ time_to_s(VALUE time)
|
|||
off = -off;
|
||||
}
|
||||
sprintf(buf2, "%%a %%b %%d %%H:%%M:%%S %c%02d%02d %%Y",
|
||||
sign, off/3600, off%3600/60);
|
||||
sign, (int)(off/3600), (int)(off%3600/60));
|
||||
len = strftime(buf, 128, buf2, &tobj->tm);
|
||||
}
|
||||
return rb_str_new(buf, len);
|
||||
|
|
Loading…
Reference in a new issue