Last post Jun 27, 2017 11:21 AM by Eric Du
Jun 27, 2017 04:28 AM|ThisIsYusuf|LINK
I have this function.
SunPosition (latitude, longitude, time)
and its works correctly on the local host
but when I run it from the server, It will display the sun's position by the server time.
I want to add some hours to server time in order to get right information by user time from any time zone
I can get the following information from the user using
<time_zone_name>Eastern Daylight Time</time_zone_name>
How do I do that, using time functions
Thanks in advance
Jun 27, 2017 11:21 AM|Eric Du|LINK
According to your description, I think you want to show the client time zoom time, instead of server time. I think you could show it through time zone, for more details, please check the following tutorials:
Setting your website DateTime according to Time Zone Offset of the client:
How to: Display Localized Date and Time Information to Web Users: