summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-21 00:30:28 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-21 00:30:28 +0000
commitb5ddc522c39bdfae4be05772df47f2bcee627cf8 (patch)
treeb72e1f3aaa227e53e6d6d556ac62f450204fcd04
parent5ea9839f1d6e0e9a0fcd5e4bdec4ea024b2f5f27 (diff)
downloadruby-b5ddc522c39bdfae4be05772df47f2bcee627cf8.tar.gz
ruby-b5ddc522c39bdfae4be05772df47f2bcee627cf8.tar.xz
ruby-b5ddc522c39bdfae4be05772df47f2bcee627cf8.zip
* strftime.c (rb_strftime): return "UTC" instead of "GMT".
* test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--strftime.c2
-rw-r--r--test/ruby/test_time.rb2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fc53f20d6..434dbbb98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Aug 21 09:29:01 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): return "UTC" instead of "GMT".
+
+ * test/ruby/test_time.rb (test_strftime): ditto.
+
Thu Aug 21 07:59:04 2008 NARUSE, Yui <naruse@ruby-lang.org>
* test/iconv/test_option.rb (test_ignore_option): skip if iconv
diff --git a/strftime.c b/strftime.c
index 86284191c..28c952714 100644
--- a/strftime.c
+++ b/strftime.c
@@ -446,7 +446,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct tm *timept
case 'Z': /* time zone name or abbrevation */
if (gmt) {
- strcpy(tbuf, "GMT");
+ strcpy(tbuf, "UTC");
break;
}
#ifdef HAVE_TZNAME
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index 049693037..a84cbd9ec 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -371,7 +371,7 @@ class TestTime < Test::Unit::TestCase
assert_equal("00:00:00", T2000.strftime("%X"))
assert_equal("00", T2000.strftime("%y"))
assert_equal("2000", T2000.strftime("%Y"))
- assert(["GMT", "UTC"].include?(T2000.strftime("%Z")))
+ assert_equal("UTC", T2000.strftime("%Z"))
assert_equal("%", T2000.strftime("%%"))
assert_equal("", T2000.strftime(""))