Fixed read date time bug in js & as.