Template:Infobox time zone/testcases

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Test UTC offset only with |UTC=yes

[edit source]
{{Infobox time zone|UTC=yes |title=UTC+08:00}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
UTC+08:00
Time zone
File:Timezones2008 UTC+8 gray.png
World map with the time zone highlighted
UTC offset
UTCUTC+08:00
Current time
18:58, 2 May 2026 UTC+08:00 [refresh]
Central meridian
120 degrees E
Date-time group
H
UTC+08:00
Time zone
File:Timezones2008 UTC+8 gray.png
World map with the time zone highlighted
UTC offset
UTCUTC+08:00
Current time
18:58, 2 May 2026 UTC+08:00 [refresh]
Central meridian
120 degrees E
Date-time group
H
{{Infobox time zone|UTC=yes |title=UTC+08:45}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
UTC+08:45
Time zone
UTC offset
UTCUTC+08:45
Current time
19:43, 2 May 2026 UTC+08:45 [refresh]
Central meridian
131.25 degrees E
UTC+08:45
Time zone
UTC offset
UTCUTC+08:45
Current time
19:43, 2 May 2026 UTC+08:45 [refresh]
Central meridian
131.25 degrees E

Minimal test with |display observance=no

[edit source]
{{Infobox time zone|display observance=no |initials=GMT |title=Greenwich Mean Time}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
Greenwich Mean Time
Time zone
UTC offset
GMTUTC+00:00
Current time
10:58, 2 May 2026 GMT [refresh]
Greenwich Mean Time
Time zone
UTC offset
GMTUTC+00:00
Current time
10:58, 2 May 2026 GMT [refresh]

Test image and caption

[edit source]
{{Infobox time zone|caption=<div class="legend"><span class="legend-color mw-no-invert" style="background-color:#b7ec6d; color:black;-webkit-print-color-adjust: exact; print-color-adjust: exact;">&nbsp;</span>&nbsp;Sri Lanka Standard Time</div> |dst use=none |image=IST-CIA-TZ.png |initials=SLST |offset=+05:30 |title=Sri Lanka Standard Time}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
Sri Lanka Standard Time
Time zone
File:IST-CIA-TZ.png
  Sri Lanka Standard Time
UTC offset
SLSTUTC+05:30
Current time
16:28, 2 May 2026 SLST [refresh]
Observance of DST
DST is not observed in this time zone.
Sri Lanka Standard Time
Time zone
File:IST-CIA-TZ.png
  Sri Lanka Standard Time
UTC offset
SLSTUTC+05:30
Current time
16:28, 2 May 2026 SLST [refresh]
Observance of DST
DST is not observed in this time zone.

Test |dst use=

[edit source]

|dst use=none

[edit source]
{{Infobox time zone|caption= |dst initials=+09:00 |dst offset= |dst use=none |initials=JST |offset=+09:00 |title=Japan Standard Time}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
Japan Standard Time
Time zone
UTC offset
JSTUTC+09:00
Current time
19:58, 2 May 2026 JST [refresh]
Observance of DST
DST is not observed in this time zone.
Japan Standard Time
Time zone
UTC offset
JSTUTC+09:00
Current time
19:58, 2 May 2026 JST [refresh]
Observance of DST
DST is not observed in this time zone.

|dst use=some

[edit source]
{{Infobox time zone|caption=<div class="legend"><span class="legend-color mw-no-invert" style="background-color:#b3b136; color:black;-webkit-print-color-adjust: exact; print-color-adjust: exact;">&nbsp;</span>&nbsp;Regions in the Central Time Zone prior to 2015 ([[Quintana Roo]] is now in the [[Eastern Time Zone]])</div> |dst initials=CDT |dst offset=−05:00 |dst use=some |image=Central Time Zone CST.png |initials=CST |offset=−06:00 |title=Central Time Zone (North America)}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
Central Time Zone (North America)
Time zone
File:Central Time Zone CST.png
  Regions in the Central Time Zone prior to 2015 (Quintana Roo is now in the Eastern Time Zone)
UTC offset
CSTUTC−06:00
CDTUTC−05:00
Current time
04:58, 2 May 2026 CST [refresh]
05:58, 2 May 2026 CDT [refresh]
Observance of DST
DST is observed in some of this time zone.
Central Time Zone (North America)
Time zone
File:Central Time Zone CST.png
  Regions in the Central Time Zone prior to 2015 (Quintana Roo is now in the Eastern Time Zone)
UTC offset
CSTUTC−06:00
CDTUTC−05:00
Current time
04:58, 2 May 2026 CST [refresh]
05:58, 2 May 2026 CDT [refresh]
Observance of DST
DST is observed in some of this time zone.
{{Infobox time zone|dst initials=HDT |dst offset=−09:00 |dst use=some |image=timezoneswest.PNG |initials=HST |offset=−10:00 |title=Hawaii–Aleutian Time Zone}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
Hawaii–Aleutian Time Zone
Time zone
File:Timezoneswest.PNG
UTC offset
HSTUTC−10:00
HDTUTC−09:00
Current time
00:58, 2 May 2026 HST [refresh]
01:58, 2 May 2026 HDT [refresh]
Observance of DST
DST is observed in some of this time zone.
Hawaii–Aleutian Time Zone
Time zone
File:Timezoneswest.PNG
UTC offset
HSTUTC−10:00
HDTUTC−09:00
Current time
00:58, 2 May 2026 HST [refresh]
01:58, 2 May 2026 HDT [refresh]
Observance of DST
DST is observed in some of this time zone.

|dst use=parts

[edit source]
{{Infobox time zone|caption=<div class="legend"><span class="legend-color mw-no-invert" style="background-color:#ffb69f; color:black;-webkit-print-color-adjust: exact; print-color-adjust: exact;">&nbsp;</span>&nbsp;Eastern Time Zone</div> |dst initials=EDT |dst offset=−04:00 |dst use=parts |image=timezoneswest.PNG |initials=EST |offset=−05:00 |title=Eastern Time Zone}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
Eastern Time Zone
Time zone
File:Timezoneswest.PNG
  Eastern Time Zone
UTC offset
ESTUTC−05:00
EDTUTC−04:00
Current time
05:58, 2 May 2026 EST [refresh]
06:58, 2 May 2026 EDT [refresh]
Observance of DST
DST is observed in parts of this time zone.
Eastern Time Zone
Time zone
File:Timezoneswest.PNG
  Eastern Time Zone
UTC offset
ESTUTC−05:00
EDTUTC−04:00
Current time
05:58, 2 May 2026 EST [refresh]
06:58, 2 May 2026 EDT [refresh]
Observance of DST
DST is observed in parts of this time zone.

|dst use=all

[edit source]
{{Infobox time zone|dst initials=NZDT |dst offset=+13:00 |dst use=all |initials=NZST |offset=+12:00 |title=New Zealand Time Zone}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
New Zealand Time Zone
Time zone
UTC offset
NZSTUTC+12:00
NZDTUTC+13:00
Current time
22:58, 2 May 2026 NZST [refresh]
Observance of DST
DST is observed throughout this time zone.
New Zealand Time Zone
Time zone
UTC offset
NZSTUTC+12:00
NZDTUTC+13:00
Current time
22:58, 2 May 2026 NZST [refresh]
Observance of DST
DST is observed throughout this time zone.

|dst use=only

[edit source]
{{Infobox time zone|dst use=only |initials=BST |name=british summer time |non dst initials=[[Greenwich Mean Time|GMT]] |offset=+01:00 |title=British Summer Time}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
British Summer Time
Time zone
UTC offset
BSTUTC+01:00
Current time
10:58, 2 May 2026 GMT [refresh]
11:58, 2 May 2026 BST [refresh]
Observance of DST
This time zone is only used for DST. For the rest of the year, GMT is used.
British Summer Time
Time zone
UTC offset
BSTUTC+01:00
Current time
10:58, 2 May 2026 GMT [refresh]
11:58, 2 May 2026 BST [refresh]
Observance of DST
This time zone is only used for DST. For the rest of the year, GMT is used.

Test passing non-standard initials to {{time}} by |name=

[edit source]
{{Infobox time zone|dst initials=IST |dst offset=+01:00 |initials=GMT |name=GMT-IE |offset=+00:00 |title=Time in the Republic of Ireland}}
Side by side comparison
{{Infobox time zone}}{{Infobox time zone/sandbox}}
Time in the Republic of Ireland
Time zone
UTC offset
GMTUTC+00:00
ISTUTC+01:00
Current time
10:58, 2 May 2026 GMT [refresh]
11:58, 2 May 2026 IST [refresh]
Observance of DST
DST is observed throughout this time zone.
Time in the Republic of Ireland
Time zone
UTC offset
GMTUTC+00:00
ISTUTC+01:00
Current time
10:58, 2 May 2026 GMT [refresh]
11:58, 2 May 2026 IST [refresh]
Observance of DST
DST is observed throughout this time zone.