RHEL6: “DeprecationWarning: Call to deprecated function: hasNow”

A RHEL6 installation complained:
“DeprecationWarning: Call to deprecated function: hasNow”

in /usr/libexec/rhsmd .

According to RedHat, this is not a problem, as rhsmd is working fine.

Workaround in order to stop seeing the mails:

# diff /tmp/rhsmd /etc/cron.daily/rhsmd 
5c5
< /usr/libexec/rhsmd -s
---
> /usr/libexec/rhsmd -s 2>&1 | grep -v DeprecationWarning