I would like to get the EST time with Python. I have the following code:
import datetime
from pytz import timezone
import time
now_EST = datetime.datetime.today().astimezone(timezone('EST'))
print(now_EST)
And the output is:
2022-03-29 09:52:55.130992-05:00
But when I google the EST time zone, I find out that the time right now is 10:52 am EST, which essentially is the right time.
Why does my code show the 1 hour earlier time compared to the correct one?