Merge pull request #4883 from steelman/arch-timezone
Arch: Draw solar diagrams for timezones other than UTC and UTC-3
This commit is contained in:
@@ -130,7 +130,7 @@ def makeSolarDiagram(longitude,latitude,scale=1,complete=False,tz=None):
|
||||
else:
|
||||
oldversion = True
|
||||
if tz:
|
||||
tz = datetime.timezone(datetime.timedelta(hours=-3))
|
||||
tz = datetime.timezone(datetime.timedelta(hours=tz))
|
||||
else:
|
||||
tz = datetime.timezone.utc
|
||||
else:
|
||||
@@ -994,7 +994,7 @@ class _ViewProviderSite:
|
||||
The name of the property that has changed.
|
||||
"""
|
||||
|
||||
if prop in ["Longitude","Latitude"]:
|
||||
if prop in ["Longitude","Latitude","TimeZone"]:
|
||||
self.onChanged(obj.ViewObject,"SolarDiagram")
|
||||
elif prop == "Declination":
|
||||
self.onChanged(obj.ViewObject,"SolarDiagramPosition")
|
||||
|
||||
Reference in New Issue
Block a user