Having trouble with Sunrise and Sunset Time in Dark Sky API

Am Using java to get Weather details from Dark Sky API.
Sunrise and Sunset time is in UNIX timestamp. When am converting from unix timestamp to datetime in java, sunrise and settime seems to be wrong. Please help me if any one came accross this

Wrong how? We need a little bit more to go on here.