fix compile on enabeld data-time check
Merge pull request #3131 from adlerre/master

fix compile on enabled data-time check