Closed roback closed 8 years ago
How about we also include a warning when it's passed non-UTC objects?
I'm thinking something like:
warn "Time needs to be in UTC" unless start_time.now.utc?
Good idea.
Maby RSpec's output matcher could be used for testing.
Maby RSpec's output matcher could be used for testing.
:+1:
:+1:
We have decided not to go with the warning, but instead convert start_time
and end_time
to UTC so the user don't have to think about that themselves. I'll update the issue title.
Nowhere in the gem documentation do we mention that
Query#start_time
andQuery#end_time
expects that the time is in UTC. It is explained on developer.twingly.com but not here. It is explained for thePost
class though.The hello world example needs an update too (
Time.now
->Time.now.utc
).