I am fetching Timezones from an external API (Xero), but the display names returned here are different than those in rails
. I am struggling to properly convert them to rails
recognisable timezones.
Examples of timezones being returned by the API are:
- (UTC) Dublin, Edinburgh, Lisbon, London
- (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague, etc.
The list of original timezones can be found here.
Also, i have this URL, which provides information about converting them to rails way, but I am not sure how to do that as they are in comments.