getSyncTime
Retrieves the last sync time from shared preferences and returns it in a formatted way. This method handles both cases:
The time stored as a timestamp in milliseconds (preferred).
Backward compatibility where the time is stored in a formatted string.
Return
A formatted sync time string.