pmarcinkiew / iotjs

Platform for Internet of Things with JavaScript http://www.iotjs.net
Other
0 stars 1 forks source link

Current time not used in new Date() in TizenRT #147

Open pmarcinkiew opened 6 years ago

pmarcinkiew commented 6 years ago

A Date object created with new fails to print current time, when converted to string.

console.log('' + (new Date()) + '');

prints

Thu Jan 01 1970 00:00:00 GMT+00:00

Tash console prints other date:

TASH>>date
Jan 01 00:04:15 2010

RTS is not set correctly during Artik 053 boot but still JavaScript date should reflect system current time, what is not true.