ruby/lib
nobu 8fc170a34e logger: fix monthly log rotate with DST
* lib/logger.rb (Logger::Period#next_rotate_time): fix monthly log
  rotate when DST is applied during a month of 31 days.
  [Fix GH-1458]

With DST the month of october can actually last more than 31 days.
It can last 31 days plus 1 hour. So during october, `t` used to be
equal to "2016-10-31 23:00:00" instead of "2016-11-01 00:00:00".
This was then normalized to "2016-10-01 00:00:00" which lead every
single line of log during october to rotate the log file.
This fix ensure that next_rotate_time(now, 'monthly') always return
the first day of next month in every situation.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-08 00:06:57 +00:00
..
cgi * lib/cgi/cookie.rb (parse): don't allow , as a separator. [Bug #12791] 2016-09-27 03:17:47 +00:00
drb Use qualified names 2016-08-30 06:22:30 +00:00
irb * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
matrix Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
net * lib/net/http/response.rb: Improve document readability. 2016-10-05 09:02:50 +00:00
optparse Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
racc Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rbconfig Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rdoc * ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of 2016-09-08 05:33:59 +00:00
rexml * lib/rexml/attribute.rb (REXML::Attribute#to_string): Fix wrong 2016-07-22 01:39:49 +00:00
rinda Use qualified names 2016-08-30 06:22:30 +00:00
rss * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes. 2016-09-18 13:51:57 +00:00
rubygems rubygems 2.6.7 2016-09-28 01:16:43 +00:00
shell * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
unicode_normalize * common.mk: Updated Unicode version to 9.0.0 [Feature #12513] 2016-09-07 08:13:08 +00:00
uri uri/common.rb: Update URI::WEB_ENCODINGS_ [ci skip] 2016-10-06 02:04:28 +00:00
webrick * lib/cgi/cookie.rb (parse): don't allow , as a separator. [Bug #12791] 2016-09-27 03:17:47 +00:00
yaml * lib/yaml/store.rb (YAML::Store#dump): use table argument instead of @table directly. 2016-09-29 14:40:34 +00:00
English.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
abbrev.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
base64.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
benchmark.rb [DOC] Fix typos 2015-12-23 03:43:23 +00:00
cgi.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
cmath.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
csv.rb * lib/csv.rb (CSV::{Row,Table}#{each,delete_if}): returns an enumerator 2016-09-07 06:06:09 +00:00
debug.rb Use qualified names 2016-08-30 06:22:30 +00:00
delegate.rb * lib/delegate.rb: Added missing spaces and Removed needless spaces. 2016-10-05 02:36:28 +00:00
drb.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
e2mmap.rb e2mmap.rb: remove legacy code 2016-09-09 00:49:05 +00:00
erb.rb remove unnecessary :stag accessor 2016-09-25 13:48:08 +00:00
fileutils.rb Octal mode in un.rb 2016-06-28 22:03:00 +00:00
find.rb find.rb: raise with the name 2016-02-19 14:38:28 +00:00
forwardable.rb forwardable.rb: remove debug print 2016-09-23 12:16:00 +00:00
getoptlong.rb * tool/mkconfig.rb: use true instead of TRUE. 2016-07-09 03:47:14 +00:00
ipaddr.rb ipaddr: fix typo [ci skip] 2016-05-21 02:18:44 +00:00
irb.rb * lib/irb.rb: avoid to needless truncation when using back_trace_limit option. 2016-02-26 01:57:58 +00:00
logger.rb logger: fix monthly log rotate with DST 2016-10-08 00:06:57 +00:00
mathn.rb math.c: Complex sqrt 2016-07-12 14:13:46 +00:00
matrix.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
mkmf.rb fid typos [ci skip] 2016-09-24 02:28:25 +00:00
monitor.rb Use qualified names 2016-08-30 06:22:30 +00:00
mutex_m.rb Use qualified names 2016-08-30 06:22:30 +00:00
observer.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
open-uri.rb lib/open-uri.rb: Allow http to https redirection. 2016-09-07 07:14:30 +00:00
open3.rb * lib/open3.rb: Specify frozen_string_literal: true. 2015-11-14 07:43:23 +00:00
optionparser.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
optparse.rb optparse.rb: fix quote [ci skip] 2016-06-05 09:54:13 +00:00
ostruct.rb * lib/ostruct.rb: [DOC] fix position of nodoc directive. 2016-04-09 13:39:32 +00:00
pp.rb * lib/open-uri.rb: Remove indicator for "frozen_string_literal: true". 2015-11-10 11:48:14 +00:00
prettyprint.rb * lib/open-uri.rb: Remove indicator for "frozen_string_literal: true". 2015-11-10 11:48:14 +00:00
prime.rb * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
profile.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
profiler.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
pstore.rb checksum algorithm is not MD5 only [ci skip] 2016-09-29 12:08:30 +00:00
rdoc.rb * lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta2 2016-09-07 22:23:38 +00:00
resolv-replace.rb * lib/resolv-replace.rb: Specify frozen_string_literal: true. 2015-11-14 08:25:30 +00:00
resolv.rb Use qualified names 2016-08-30 06:22:30 +00:00
rss.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rubygems.rb rubygems 2.6.7 2016-09-28 01:16:43 +00:00
scanf.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
securerandom.rb random.c: use bytes 2016-05-10 05:57:11 +00:00
set.rb * lib/set.rb: [DOC] add documentation that Set#{delete_if,keep_if,collect!,reject!,select!, 2016-05-04 09:07:01 +00:00
shell.rb Use qualified names 2016-08-30 06:22:30 +00:00
shellwords.rb remove duplicated frozen_string_literal magic comment 2015-12-16 09:25:48 +00:00
singleton.rb Use qualified names 2016-08-30 06:22:30 +00:00
sync.rb * lib/sync.rb: Fix NameError when error. 2016-09-18 10:24:48 +00:00
tempfile.rb * lib/tempfile.rb: provide default basename parameter 2016-09-26 05:45:29 +00:00
thwait.rb Use qualified names 2016-08-30 06:22:30 +00:00
time.rb * lib/time.rb: revert r54167 because it would break 2016-04-19 04:20:48 +00:00
timeout.rb fix a typo [ci skip] 2016-09-07 12:32:02 +00:00
tmpdir.rb * lib/tmpdir.rb: Unify to coding-style for method definition. 2016-02-26 02:11:14 +00:00
tracer.rb Use qualified names 2016-08-30 06:22:30 +00:00
tsort.rb * lib/tsort.rb: Specify frozen_string_literal: true. 2015-11-14 08:46:11 +00:00
ubygems.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
un.rb Octal mode in un.rb 2016-06-28 22:03:00 +00:00
unicode_normalize.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
uri.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
weakref.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
webrick.rb [DOC] Fix typos 2015-12-23 03:43:23 +00:00
yaml.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00