first working version, need to adjust time because of comma between seconds and milliseconds.