fixed time2json bug