Fixing comparing date when showing popular courses refs #7005
Merge pull request #231 from ycastillo/yoselyn.7005

Fixing comparing date when showing popular courses refs #7005