Traceback (most recent call last):
File "sun.py", line 7, in
date = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(sys.argv[1])-(timezone6060)))
IndexError: list index out of range
I was running it to see if my time zone was working correctly. I executed it with:
python3 sun.py
My Time zone shows as 8, I am GMT-8. It looks like the code stores the time zone as a positive number and then subtracts it from the time?
I am getting this error from sun.py:
Traceback (most recent call last): File "sun.py", line 7, in
date = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(sys.argv[1])-(timezone6060)))
IndexError: list index out of range
I was running it to see if my time zone was working correctly. I executed it with:
python3 sun.py
My Time zone shows as 8, I am GMT-8. It looks like the code stores the time zone as a positive number and then subtracts it from the time?