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
Post a Comment