How to restrict epoch time in Thingworx -
i creating thing programmatically , setting property filed. if don't provide time while setting properties take epoch time in thingworx.
how restrict epoch time?
to explain further, if don't set datetime property on thing, making null/undefined, property report now. if keep refreshing thing's property values, keep changing now.
this consider thingworx bug in datetimeprimitive. work around by, when making datetime properties, set default date, jan 1 1970, or jan 1 2000 or that. javascipt service code can know null, , whatever needs do. (you return property string, , if it's detected null date, leave blank or "not set" or whatever application might need.
Comments
Post a Comment