Additionally I think its helpful to remember that timezones are political
constructs and so are completely arbitrary and open to change based on the
whims of political leaders e.g. 

https://en.wikipedia.org/wiki/Time_in_Russia#Daylight_saving_time

So best keep them out of your code, near the presentation layer, as much as
possible as Stephan recommends.  




Stephan Eggermont wrote
> Esteban wrote:
>>Anyhow this is too much to add to my app without giving it proper
thinking. So let's KISS.
> 
> If you only work with a single server/all servers in the same timezone
> that translates to:
> - Do everything in local time or UTC, have one place where you know your
> zone, 
> - Store all time/date without timezone.
> - Have in your session timezone information you get from the browser.
> - Store in the user info their preferred/last used timezone 
> - Translate on the outside
> 
> Stephan





--
View this message in context: 
http://forum.world.st/Working-with-timezones-tp4767466p4767553.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to