Pull request for Issue665

@dretrex 
@davidChevrier 
For consistency, const QDateTime &?