How to Solve NameError: name 'tzoffset' is not defined -- dateutil
Solution: Import the 'tzoffset' module
To Solve the error, add the following line to the top of your code.
from dateutil import tzoffset
For more information:
Python dateutil tzoffset