add time to write ts file