Fixed bug with last_sync time being converted to localtime from utc
Added debug logging to update sync time