I have an application which returns time in different timezones e.g
"createtime": "2022-01-20 21:40:59 +0000 UTC" or
"createtime": "2022-05-04 04:30:12 -0700 PDT"
I need to use the golang t, err := time.Parse(layout, str) code to parse this and convert it to time type. The issue is that time returned can be in any timezone as above(UTC,PDT, IST) etc and i dont want to specify multiple layouts for time.Parse().
Is there a way to handle this with a single layout?