So I have a Django REST endpoint that takes a abbreviated time zone(ABT) in string form as a parameter. ABT is timezone strings such as PST, UTC, EST. I want to check if this string ABT is valid. If it's not valid then it should return a 400 response as in invalid request. Is there a list of valid ABT or maybe a way using the pyzt to check if the ABT string is valid?
There's this post that was suggested as an answer, but it doesn't return a full list of ABT:
Is there a list of Pytz Timezones?
'Africa/Abidjan' for example is returned by the answer in the above post for list of time zones, but is not ABT format.