Change log timestamp format.
Fix timeperiod update bug.