我的代码:
<c:set var = "redirectEnd" value = "September 19, 2019 5:00:00 PM EST" />
<fmt:parseDate value = "${redirectEnd}" var = "parsedEndDate" type="both" dateStyle="long" timeStyle="long" />
<c:out value ="Parsed date = ${parsedEndDate}"/>
理想情况下应该打印:
Parsed date = Thu Sep 19 14:00:00 PDT 2019
但打印:
Parsed date = Thu Sep 19 15:00:00 PDT 2019
繁星淼淼
森栏
相关分类