Page 1 of 1

DateAvailable not changing upon successful update

Posted: Mon Nov 14, 2016 12:17 pm
by lokuber
Hello everyone.

I am currently developping a simple webpage on our domain to let our consultants tell us if they are available or not and when if they are free.
It could really impact our effectiveness.

I send the dates to BullHorn on the dateAvailable field. The only problem is that the field is correctly updated on the API (the timestamp is the same as the one I sent) but on the user interface, the date is always set on the 17th of January 1970 which is kind of odd because the dateAvailable has the value of another timestamp on the API.

Nothing is strange in the response from the API yet I have this odd behavior (I checked all the fields on the candidate and can't find any timestamp slighty corresponding to such dates from 1970)
Image
Here's the response when I update the field (no error all the time) :

Code: Select all

{
 "changedEntityType" : "Candidate",
 "changedEntityId" : xxxxx,
 "changeType" : "UPDATE",
 "data" : {
   "dateAvailable" : 1478217600
 }
}
Any help is appreciated

Re: DateAvailable not changing upon successful update

Posted: Mon Nov 14, 2016 12:29 pm
by lokuber
I just figured out that timestamp need to be multiplied by 1000 to work.

That solved the problem