We all know what a joy it is working with different timezones in our applications, especially when we need to convert different times between them.
To make it even more pleasurable, I created this function some time back to help me with these.
It depends on the
dateutil library to parse the dates.
Make sure you use a timezone string from here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Easy to grab gist here: https://gist.github.com/muya/0054ebb9487f55615daa
That’s it! Happy coding!