Issue #2220665 by DanChadwick: Fix intra-page date and time conditionals.