diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-07 06:59:46 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-07 06:59:46 +0000 |
commit | 6fc752bf7da30898ff8e570f9354cab9419cf3cf (patch) | |
tree | 69ef1c65eafc080502ce7cb838a7d8a34904980e /time.c | |
parent | a509e67c5a690ad83bde66299d73bcf967f84dc1 (diff) |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -633,13 +633,10 @@ time_to_s(time) if (tobj->tm_got == 0) { time_get_tm(time, tobj->gmt); } -#ifndef HAVE_TM_ZONE if (tobj->gmt == 1) { - len = strftime(buf, 128, "%a %b %d %H:%M:%S GMT %Y", &tobj->tm); + len = strftime(buf, 128, "%a %b %d %H:%M:%S UTC %Y", &tobj->tm); } - else -#endif - { + else { len = strftime(buf, 128, "%a %b %d %H:%M:%S %Z %Y", &tobj->tm); } return rb_str_new(buf, len); |