-
Type:
Bug
-
Resolution: resolved
-
Priority:
Minor
-
Component/s: None
-
None
Root.Time initializes to 0.0 when created.
self.add(pr.LocalVariable(name='Time', value=0.0, mode='RO', hidden=True, description='Current Time In Seconds Since EPOCH UTC', groups=['NoSql']))
This causes the value of Root.SystemTime to be '1969-12-31 16:00:00 PST' after Root.start() is called, until the time thread starts updating it.
A user was not expecting this behavior and was confused as to why the time was wrong when getting Root.LocalTime immediately after Root.start().
It seems like it would be easy enough to just init Root.Time to time.time() instead.