https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112018-11-25T16:14:41ZRuby Issue Tracking SystemRuby master - Bug #15340: Time.local behaving inconsistently for excess days after 2038https://bugs.ruby-lang.org/issues/15340?journal_id=751682018-11-25T16:14:41Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><blockquote>
<p>I thought I observed a case 2038-02-30 is recognized as 2038-03-01 when ENV['TZ']=nil, but just now I couldn't reproduce the case. It might be my mistake in operations, but let me leave the log just in case. (It might be because I was in different timezones when I observed them. The example above was in JST, and the below was in PST.)</p>
</blockquote>
<p><code>ENV['TZ'] = nil</code> means "Use system default timezone". In other words, it means <code>Asia/Tokyo</code> in Japan, and <code>America/Los_Angeles</code> in West America.</p> Ruby master - Bug #15340: Time.local behaving inconsistently for excess days after 2038https://bugs.ruby-lang.org/issues/15340?journal_id=751692018-11-25T16:23:23Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r65974.</p>
<hr>
<p>Normalize month-mday before finding epoch</p>
<p>Especially over the year 2038, 30 Feb and so on may cause odd behavior<br>
on validating found epoch with given year-month-day [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Time.local behaving inconsistently for excess days after 2038 (Closed)" href="https://bugs.ruby-lang.org/issues/15340">#15340</a>]</p> Ruby master - Bug #15340: Time.local behaving inconsistently for excess days after 2038https://bugs.ruby-lang.org/issues/15340?journal_id=751702018-11-25T16:27:38Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Backport</strong> changed from <i>2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN</i> to <i>2.3: WONTFIX, 2.4: REQUIRED, 2.5: REQUIRED</i></li></ul> Ruby master - Bug #15340: Time.local behaving inconsistently for excess days after 2038https://bugs.ruby-lang.org/issues/15340?journal_id=763592019-01-16T15:32:59Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>2.3: WONTFIX, 2.4: REQUIRED, 2.5: REQUIRED</i> to <i>2.3: WONTFIX, 2.4: REQUIRED, 2.5: DONE</i></li></ul><p>ruby_2_5 r66839 merged revision(s) 65974.</p> Ruby master - Bug #15340: Time.local behaving inconsistently for excess days after 2038https://bugs.ruby-lang.org/issues/15340?journal_id=766122019-01-31T10:59:55Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.3: WONTFIX, 2.4: REQUIRED, 2.5: DONE</i> to <i>2.3: WONTFIX, 2.4: DONE, 2.5: DONE</i></li></ul><p>ruby_2_4 r66967 merged revision(s) 65974.</p>