GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Right now, Rule#until() only supports arguments with the granularity of Time. It will accept a Date object without error, but it will naively convert it to the 00:00:00 local time of that date, which wrong.
Right now, I'm working around this by explicitly converting Date objects to Time objects that give the desired result:
(date + 1).to_time - 1
Ideally, ice_cube would properly handle Date objects for until.
Cool - great call - will have this in today
Make #until works correctly with Date objects