Modified logic to include retrieving latest logs as well - still needs a bit of debugging
- interim checkin.
Fixing issues with datetime format when sending request to get latest
logs.
Fixing date formatting issue when saving the logs got from
the server.