java - JSTL timezone (KST) implementation error found -
while practicing jstl timezone tag, tried run these 2 actions:
<c:set var="now" value="<%= new java.util.date() %>" /> <fmt:timezone value="gmt+9:00"> <fmt:formatdate value="${now}" type="both" datestyle="full" timestyle="full"/> </fmt:timezone> <%-- , --%> <fmt:timezone value="kst"> <fmt:formatdate value="${now}" type="both" datestyle="full" timestyle="full"/> </fmt:timezone> i believe should produce same result. however, produce following 2 different time values.
2017년 8월 15일 화요일 오후(pm) 8시 03분 27초 gmt+09:00
2017년 8월 15일 화요일 오전(am) 11시 03분 27초 gmt
did miss or implementation incorrect? case of mis-implementation, should contact?
it's not recommended use three-letter time zone ids. deprecated. , not of them supported.
see oracle java docs
three-letter time zone ids
for compatibility jdk 1.1.x, other three-letter time zone ids (such "pst", "ctt", "ast") supported. however, use deprecated because same abbreviation used multiple time zones (for example, "cst" u.s. "central standard time" , "china standard time"), , java platform can recognize 1 of them.
Comments
Post a Comment