Time zone : How?

Hello
how to change Time zone with GhPython?

Hi,

does this help?:

import scriptcontext as sc



sun = sc.doc.Lights.Sun

print sun.TimeZone

sun.TimeZone = 8.0

print sun.TimeZone

-Willem

I tried it but rh.Render.Sun.SunDirection(lat,long,date) don’t give the right direction

I tried that but the problem rh.Render.Sun.SunDirection(lat,long,date) don’t change


Is there another way to get Sun direction?

The same; sun direction is right when UTC +0, but wrong when Time zone changed

I don’t know what’s wrong with Render.Sun.SunDirection but i use Azimuth and Altitude to find sun position and sun direction