All the Date/Time extension is based on timezone strings such as “Europe/Amsterdam”.
The dropdown I show to the user has one option per timezone offset, eg: “(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay”
I don’t think showing him a list with all the countries in the world would be appropiate, since the only thing that matters is the timezone offset.
Is it possible to create a localized date object, or date string, from something like ‘-2’ (as the timezone offset) ??
Answer: date(‘Y-m-d h:i:s’, $unix_timestamp + $offset * 60 * 60)
date(‘Y-m-d h:i:s’, $unix_timestamp + $offset * 60 * 60)