ThingWorx : All DateTime values are automatically converted from server time to browser time on the client side
Applies To
- ThingWorx Platform 6.5 to 9.5
Description
- DateTime / TimeZone conversion in ThingWorx
- All DATETIME values are automatically converted from server time to browser time on the client side
- Is it possible to see charted data / information in another timezone, such as the device's time zone, or the user's time zone?
- User's timezone should be browser, but not always if they're using someone else's machine
- Is it possible to dynamically specify which timezone Date/Time values will be converted to, rather than always assuming browser time?
- This would allow users to define a user-specific timezone (User Property) or a device specific timezone, and feed that information to the mashup for use when doing date/time conversions
- Users would want to use the device's timezone rather than assuming that they want all timestamps to be converted to the browser's timezone
- A user might be travelling in another timezone when checking their devices
- There is no way to override this without knowing both the browser's timezone and the server's timezone and calculating it dynamically
- The browser's timezone may not be known until rendering has started, at which point it may be too late to perform any date conversions