You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Geolocation extension datetime returns value converted to local timezone of server. #718
Hi, from geolocation extension sourcecode:
long milliseconds = position.timestamp;
this.TimeStamp = new DateTime(minTicks, DateTimeKind.Utc).AddMilliseconds(milliseconds).ToLocalTime();
If server is hosted in another timezone, client js UTC timestamp is converted to a local server time,
I guess geolocation datetime in wisej must be showed as UTC
Maybe like this (without "ToLocalTime()" method):
long milliseconds = position.timestamp;
this.TimeStamp = new DateTime(minTicks, DateTimeKind.Utc).AddMilliseconds(milliseconds)
Or better solution to have 2 wisej geolocation control properties UtcDateTime and ClientDateTime based on javascript call:
new Date().getTimezoneOffset();//gets the timezone offset
Activity
itg-assistant commentedon Jun 12, 2026
Luca answered 2017-03-23 15:01:42 UTC
Thanks, we'll change.
itg-assistant commentedon Jun 12, 2026
Luca answered 2017-03-23 17:41:00 UTC
Good catch. It's enough to remove ToLocalTime(). The client browser already returns the local time for the client.