facebook / facebook/duckling

Bugs in *from*/ *to* context

Đang mở
#201 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Haskell
Star
4.3k
Fork
740
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

Are these bugs?

Now: Wednesday, 30 May 2018 at 17:53:17 -0700 (-07:00) :second

1. Query: From 3AM to 12 noon
Produces just the 12:00
Result: Thursday, 31 May 2018 at 12:00:00 -0700 (-07:00) :hour

2. Query: From 10AM to 1PM (From [hour1] to [hour2])
Hour2 seems to be +1'd every time.
Result: From Thursday, 31 May 2018 at 10:00:00 -0700 (-07:00) to Thursday, 31 May 2018 at **14:00:00** -0700 (-07:00) :hour

3. Query: 5 in the evening
Shouldn't it just return the time (and not an interval)?
The date too seems to be off.
Result: From Saturday, 1 January 2005 at 18:00:00 -0800 (-08:00) to Sunday, 2 January 2005 at 0:00:00 -0800 (-08:00) :hour

4. Query: 1 hour before 3 (or) 1 hour before 2 (or) 1 hour before -5
?
Result: Tuesday, 31 December 2002 at 23:00:00 -0800 (-08:00) :minute

Regards.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.