fixed a bug
use rounded time