zmoazeni/harvested — Issue #18: Spent_at field of a time always missed
Author: tkwong
Created: 2011-10-08 02:32:28+00:00
State: open

When I do a harvest.time.find(id), it return the Harvest::TimeEntry object but the spent_at is nil. When I troubleshoot looks the Harvest JSON API always missed the spent_at field.

ruby-1.8.7-p302 > response = harvest.time.request :get, harvest.time.credentials, '/daily/show/58972905'
response => # response.body
=> "{ \"project_id\": \"1188836\",\n \"project\": \"General Support\",\n \"task_id\": \"322617\",\n \"task\": \"Development\",\n \"client\": \"Mr. X\",\n \"id\": 58972905,\n \"notes\": \"r2700\",\n \"created_at\": \"2011-10-07T03:00:05Z\",\n \"updated_at\": \"2011-10-07T04:02:54Z\",\n \n \"hours\": 2.50}\n"

Looks Harvest API JSON isn't stable yet, isn't it?