ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:51185] [Ruby master Bug#18946] Time#to_date returns incorrect date
@ 2022-07-29  6:29 kei-p (Keisuke Ishizawa)
  2022-07-29  7:03 ` [ruby-dev:51186] " duerst
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kei-p (Keisuke Ishizawa) @ 2022-07-29  6:29 UTC (permalink / raw)
  To: ruby-dev

Issue #18946 has been reported by kei-p (Keisuke Ishizawa).

----------------------------------------
Bug #18946: Time#to_date returns incorrect date
https://bugs.ruby-lang.org/issues/18946

* Author: kei-p (Keisuke Ishizawa)
* Status: Open
* Priority: Normal
* ruby -v: 3.1.2
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Time#to_date returns incorrect date.

Actual Behavior:
```
Time.local(1499, 12, 27).to_date
=> #<Date: 1499-12-18 ((2268919j,0s,0n),+0s,2299161j)>
```

Expected Behavior:
```
Time.local(1499, 12, 27).to_date
=> #<Date: 1499-12-27 ...>
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-22  3:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29  6:29 [ruby-dev:51185] [Ruby master Bug#18946] Time#to_date returns incorrect date kei-p (Keisuke Ishizawa)
2022-07-29  7:03 ` [ruby-dev:51186] " duerst
2022-07-29  8:26 ` [ruby-dev:51187] " kei-p (Keisuke Ishizawa)
2022-07-29 23:06 ` [ruby-dev:51188] " jeremyevans0 (Jeremy Evans)
2022-08-08  3:02 ` [ruby-dev:51192] " matz (Yukihiro Matsumoto)
2022-08-22  3:48 ` [ruby-dev:51194] " nobu (Nobuyoshi Nakada)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).