Skip to content

Commit

Permalink
Merge pull request #137 from Kuenlun/patch-1
Browse files Browse the repository at this point in the history
get_sunrise_sunset_transit referred to UTC not to local time
  • Loading branch information
pingswept committed Dec 11, 2020
2 parents 2d4b89c + 3de0022 commit a8918f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysolar/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_sunrise_sunset_transit(latitude_deg, longitude_deg, when):
else :
utc_offset = 0
#end if
day = when.utctimetuple().tm_yday # Day of the year
day = when.timetuple().tm_yday # Day of the year
SHA = utc_offset / 3600 * 15.0 - longitude_deg # Solar hour angle
TT = 2 * math.pi * day / 366
decl = \
Expand Down

0 comments on commit a8918f3

Please sign in to comment.