We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b85bfe3 commit 015fc18Copy full SHA for 015fc18
1 file changed
datapoint/Forecast.py
@@ -21,7 +21,7 @@ def now(self):
21
now = None
22
d = datetime.datetime.utcnow()
23
msm = (d - d.replace(hour=0, minute=0, second=0, microsecond=0)).total_seconds() / 60
24
- if self.days[0].date == d.strftime("%Y-%m-%dZ"):
+ if self.days[0].date.strftime("%Y-%m-%dZ") == d.strftime("%Y-%m-%dZ"):
25
for timestep in self.days[0].timesteps:
26
if timestep.name > msm:
27
break
0 commit comments