Fixed error in previous commit where datetime.now was passed as function instead of result