android - Where should date representation should be handled on API or on mobile app? -


we have api return dates , have mobile app use dates represent dates in different formats ( 10 mins ago ) best way handle representation of date on api or mobile app ?

if need able change representation without redeploying / re-releasing app should represent on server.

alternatively represent in utc on server , have each client of api responsible displaying information based on own needs. places more responsibility on client, keeps server ignorant of display concerns.


Comments