July 14, 2017
10:28 p.m.
Have a look at #asLocal Norbert
Am 14.07.2017 um 23:04 schrieb Tim Mackinnon <tim@testit.works>:
Hi - Iâm really confused about DateAndTime support in Pharo?
If I have a server app running in the EU, and a user makes a request from Canada, and I want to format the time they see to be in their timezone - how do I do that with the classes in Pharo?
I can ask for a DataAndTime nowUTC, and if I know the user is in en-CA, I can create a Locale for them - but then how do I get the correct time offset, or how to I format that UTC date in their locale?
Tim