diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-30 12:52:42 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-30 12:52:42 +0000 |
commit | c42f46bfc7d177a0fc201ab731314d29e494422c (patch) | |
tree | 958fb6f8b126a1c737b1d358705ffce9eb884dc2 | |
parent | 30519c0b6a98d4273d1ba181e8a0d38916c4058a (diff) |
merge revision(s) 58643: [Backport #13231]
date_core.c: fix docs for %Z format
* ext/date/date_core.c: [DOC] fix documentation for %Z format
of {Date,DateTime}.strftime.
Reported by Damon Timm. Based on a patch by nano.
[ruby-core:79602] [Bug #13231] [Fix GH-1565]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@59237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ext/date/date_core.c | 4 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,10 @@ +Fri Jun 30 21:51:40 2017 Marcus Stollsteimer <sto.mar@web.de> + + * ext/date/date_core.c: [DOC] fix documentation for %Z format of + {Date,DateTime}.strftime. + Reported by Damon Timm. Based on a patch by nano. + [Bug #13231] [Fix GH-1565] + Fri Jun 30 21:46:50 2017 Kouhei Sutou <kou@cozmixng.org> * lib/rss/rss.rb: Accept empty text element as valid element diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 611279c8d2..0a7e6f15cb 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -6787,7 +6787,7 @@ date_strftime_internal(int argc, VALUE *argv, VALUE self, * %::z - hour, minute and second offset from UTC (e.g. +09:00:00) * %:::z - hour, minute and second offset from UTC * (e.g. +09, +09:30, +09:30:30) - * %Z - Time zone abbreviation name or something similar information. + * %Z - Equivalent to %:z (e.g. +09:00) * * Weekday: * %A - The full weekday name (``Sunday'') @@ -8218,7 +8218,7 @@ dt_lite_to_s(VALUE self) * %::z - hour, minute and second offset from UTC (e.g. +09:00:00) * %:::z - hour, minute and second offset from UTC * (e.g. +09, +09:30, +09:30:30) - * %Z - Time zone abbreviation name or something similar information. + * %Z - Equivalent to %:z (e.g. +09:00) * * Weekday: * %A - The full weekday name (``Sunday'') @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.3.5" #define RUBY_RELEASE_DATE "2017-06-30" -#define RUBY_PATCHLEVEL 333 +#define RUBY_PATCHLEVEL 334 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 6 |