Set the right time and solve warnings.