From 8fc170a34eff0190533b669b3e9f6b6aba42e48c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 8 Oct 2016 00:06:57 +0000 Subject: 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 --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 01d86b39dd..707358e16a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Oct 8 09:06:55 2016 Aurelien Jacobs + + * 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] + Fri Oct 7 20:21:39 2016 Nobuyoshi Nakada * gc.c (gc_prof_setup_new_record): fix the condition to get -- cgit v1.2.3