I have datetime value in format of 2022-01-26T07:01:36-08:00
(based on which user fetches data, it will have local timezone, like -08:00
, +05:30
)
I want to convert this time into UTC Time.
I saw multiple example of pytz but couldn't figure out how to convert using pytz or datetime. datetime value will be based on machine timezone so I can't hard code timezone value also.