Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass Time parameter to time_entries.updated_since #69

Open
amisle opened this issue Jan 3, 2022 · 0 comments
Open

Cannot pass Time parameter to time_entries.updated_since #69

amisle opened this issue Jan 3, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@amisle
Copy link

amisle commented Jan 3, 2022

This works:

h = Harvesting::Client.new
h.time_entries(updated_since: Date.yesterday)

This does not work:

h = Harvesting::Client.new
h.time_entries(updated_since: 1.hour.ago)

All attempts to pass time in addition to a date yield the following error:
NoMethodError (undefined method `map' for nil:NilClass)

I have tried with Time and DateTime classes, as well as passing a string (e.g. Time.now.iso8601) - all return this error, even though the Harvest API says time is acceptable in this field. I looked through time_entries.rb and see where this gem is trying to do a .map but got lost from there on where this is failing. Thanks in advance.

@kindoflew kindoflew added the bug Something isn't working label Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants