Modified how the current time is calculated.