Apache 2.4 日期表达式

Apache 2.4 Date Expressions

Apache 2.4 之前我可以写这个

<!--#config timefmt="%Y%m%d %T" -->
<!--#if expr="($DATE_LOCAL > 20170311 00:00:01) && ($DATE_LOCAL < 20170316 00:00:01)"-->
Show this text during the specified Date/Time
<!--#endif-->

我尝试了几种不同的方法....但我似乎无法在 Apache 2.4 中使用它。

如果我打开 "SSILegacyExprParser on" 我可以让它工作......但是我想在 Apache 2.4 中不打开它来让它工作。

任何人都可以帮助解决所需的正确语法吗?

好的......我能够解决这个问题......并且似乎在 Apache 2.4 中测试得很好

<!--#config timefmt="%Y%m%d %T" -->
<!--#if expr="(v('DATE_LOCAL') > '20170311 00:00:01') && (v('DATE_LOCAL') < '20170316 00:00:01')"-->
Show this text during the specified Date/Time
<!--#endif-->