Skip to content

Commit

Permalink
[JENKINS-75163] respect user timezone in historywidget (#10177)
Browse files Browse the repository at this point in the history
  • Loading branch information
krisstern authored Jan 20, 2025
2 parents 40ae390 + 4d220b7 commit 9b1fb7d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ THE SOFTWARE.
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:i="jelly:fmt">
<j:set target="${it}" property="nextBuildNumberToFetch" value="${it.nextBuildNumber}" />
<j:invokeStatic className="java.time.LocalDate" method="now" var="now" />
<j:if test="${h.isUserTimeZoneOverride()}">
<i:setTimeZone value="${h.getUserTimeZone()}" />
</j:if>
<j:new var="dateNow" className="java.util.Date"/>
<i:formatDate value="${dateNow}" var="now" type="date" pattern="YYYY-MM-dd"/>

<j:forEach var="pageEntry" items="${it.runs}">
<i:formatDate value="${pageEntry.entry.timestamp.time}" var="date" type="date" dateStyle="long" />
Expand Down

0 comments on commit 9b1fb7d

Please sign in to comment.