Skip to content

Commit 884ecb2

Browse files
committed
JENKINS-20780 Wrap timezone list in collapsible details section
1 parent 5f593ae commit 884ecb2

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

core/src/main/resources/hudson/triggers/TimerTrigger/help-spec.jelly

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,26 +91,27 @@ H H 1,15 1-11 *
9191
first line of the field.
9292
Time zone specification starts with <code>TZ=</code>, followed by the ID of a time zone.
9393
</p>
94+
<p>
95+
Complete example of a schedule with a time zone specification:
96+
</p>
97+
<pre>
98+
TZ=Europe/London
99+
# This job needs to be run in the morning, London time
100+
H 8 * * *
101+
# Butlers do not have a five o'clock, so we run the job again
102+
H(0-30) 17 * * *
103+
</pre>
94104
<p>
95-
Complete example of a schedule with a time zone specification:
96-
</p>
97-
<pre>
98-
TZ=Europe/London
99-
# This job needs to be run in the morning, London time
100-
H 8 * * *
101-
# Butlers do not have a five o'clock, so we run the job again
102-
H(0-30) 17 * * *
103-
</pre>
104-
<p>
105-
The full list of supported time zone IDs depends on the Java runtime Jenkins is running on.
106-
A reference list of TZ database time zone IDs can be found here:
107-
<a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" target="_blank">
108-
List of tz database time zones
109-
</a>.
110-
</p>
111-
<p>
112-
Most users will not need to set a custom time zone. Only specify one if your job must run
113-
in a different time zone than the Jenkins controller.
105+
The supported time zones depend on the Java runtime Jenkins is running on. The list of supported time zone IDs on this instance is:
114106
</p>
107+
<details>
108+
<summary><strong>Click to view the list of supported time zone IDs</strong></summary>
109+
<j:invokeStatic className="java.util.TimeZone" method="getAvailableIDs" var="timeZones"/>
110+
<ul>
111+
<j:forEach items="${timeZones}" var="timeZone">
112+
<li>${timeZone}</li>
113+
</j:forEach>
114+
</ul>
115+
</details>
115116
</div>
116117
</j:jelly>

0 commit comments

Comments
 (0)