Change .now() to .utcnow() (#22233)

ephem works in UTC time, not local time. As a result, our comparison needs to be in UTC for accurate results.
pull/22266/head
Ryan Bahm 2019-03-21 12:59:07 -07:00 committed by Paulus Schoutsen
parent 72bb94de96
commit bc85d47878
1 changed files with 1 additions and 1 deletions

View File

@ -130,5 +130,5 @@ class Season(Entity):
def update(self):
"""Update season."""
self.datetime = datetime.now()
self.datetime = datetime.utcnow()
self.season = get_season(self.datetime, self.hemisphere, self.type)