4 ms·
I understand what the context of render means here. However, consider you're building a mobile app that calls this API, then where does the correct time zone fr
by pan69 12y ago
I understand what the context of render means here. However, consider you're building a mobile app that calls this API, then where does the correct time zone from? It could come from the user profile or maybe somewhere else. In any case, it's much easier on the client to include the time zone specific to the client making the call in the time stamp it self otherwise all clients will have to do time conversions.
- quesera 12y agoThe correct timezone comes from the user's device. Mobile or desktop. There's almost never a good reason for the API service to know the user's timezone. Besides the unnecessary code complication and extra compute cycles on the server side, why destroy your opportunities for caching the data?