ecleel / hijri

Hijri date library for Ruby
https://rubygems.org/gems/hijri
MIT License
56 stars 20 forks source link

Bug: hijri date is 1 day behind actual date #7

Open arkdy opened 3 years ago

arkdy commented 3 years ago

Hi,

I've found some strange behavior, when I write Date.today.to_hijri then I got #<Hijri::Date:0x00007f9c22e3f5b0 @year=1442, @month=12, @day=3>, but all other sources (like Google) say that today is 04 / 12 / 1442.

thehungrycoder commented 3 years ago

I just found out this too. Interestingly I see it is 2 days behind. Seems #4 reports 2 days behind too.