Skip to content

Instantly share code, notes, and snippets.

@JonTheNiceGuy
Last active March 18, 2019 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonTheNiceGuy/612a931088704ddcbd79a827a04a96e4 to your computer and use it in GitHub Desktop.
Save JonTheNiceGuy/612a931088704ddcbd79a827a04a96e4 to your computer and use it in GitHub Desktop.

Mapping the FortiGate Timezone Field with the TZ Database

This yml file shows the relationship between the tz_database values for regions (e.g. Europe/London) and the Fortigate "system global timezone" value (e.g. 25 = Europe/London).

The TZ Database names are taken from a Wikipedia entry on TZ values, and the Fortigate values are found by me splitting the strings (on comma's) from when I have tried auto-completing the timezone field on a Fortigate model.

It is not a perfect list! Updates welcome!!

---
# These built in values taken from a vanilla build of FortiOS v6.0.3 for Azure (Build 0200 GA)
tz_timezones_to_fortigate_timezones_lookup:
"Africa/Cairo": "33"
"Africa/Casablanca": "79"
"Africa/Harare": "34"
"Africa/Monrovia": "24"
"Africa/Nairobi": "40"
"America/Argentina/Buenos_Aires": "19"
"America/Bogota": "11"
"America/Buenos_Aires": "19"
"America/Caracas": "74"
"America/Chihuahua": "81"
"America/La_Paz": "15"
"America/Lima": "11"
"America/Mexico_City": "9"
"America/Santiago": "16"
"Asia/Almaty": "49"
"Asia/Baghdad": "37"
"Asia/Baku": "43"
"Asia/Bangkok": "53"
"Asia/Chongqing": "55"
"Asia/Dhaka": "50"
"Asia/Irkutsk": "55"
"Asia/Istanbul": "85"
"Asia/Jakarta": "53"
"Asia/Jerusalem": "36"
"Asia/Kabul": "44"
"Asia/Kamchatka": "72"
"Asia/Karachi": "46"
"Asia/Kathmandu": "48"
"Asia/Kolkata": "47"
"Asia/Krasnoyarsk": "54"
"Asia/Kuala_Lumpur": "57"
"Asia/Kuwait": "38"
"Asia/Magadan": "69"
"Asia/Muscat": "42"
"Asia/Novosibirsk": "49"
"Asia/Rangoon": "52"
"Asia/Riyadh": "38"
"Asia/Seoul": "60"
"Asia/Singapore": "57"
"Asia/Taipei": "59"
"Asia/Tashkent": "46"
"Asia/Tehran": "41"
"Asia/Tokyo": "60"
"Asia/Vladivostok": "68"
"Asia/Yakutsk": "61"
"Atlantic/Azores": "22"
"Australia/Adelaide": "62"
"Australia/Brisbane": "64"
"Australia/Canberra": "65"
"Australia/Darwin": "63"
"Australia/Hobart": "67"
"Australia/Melbourne": "65"
"Australia/Perth": "58"
"Australia/Sydney": "65"
"Brazil/East": "13"
"Canada/Newfoundland": "17"
"Canada/Saskatchewan": "10"
"Etc/GMT": "24"
"Etc/UTC": "24"
"Europe/Amsterdam": "26"
"Europe/Athens": "31"
"Europe/Belgrade": "27"
"Europe/Berlin": "26"
"Europe/Bratislava": "27"
"Europe/Brussels": "28"
"Europe/Bucharest": "32"
"Europe/Budapest": "27"
"Europe/Copenhagen": "28"
"Europe/Dublin": "25"
"Europe/Helsinki": "35"
"Europe/Istanbul": "85"
"Europe/Lisbon": "25"
"Europe/Ljubljana": "27"
"Europe/London": "25"
"Europe/Madrid": "28"
"Europe/Minsk": "84"
"Europe/Moscow": "83"
"Europe/Paris": "28"
"Europe/Prague": "27"
"Europe/Riga": "35"
"Europe/Rome": "26"
"Europe/Sarajevo": "29"
"Europe/Skopje": "29"
"Europe/Sofia": "31"
"Europe/Stockholm": "26"
"Europe/Tallinn": "35"
"Europe/Vienna": "26"
"Europe/Vilnius": "31"
"Europe/Volgograd": "39"
"Europe/Warsaw": "29"
"Europe/Zagreb": "29"
"GMT": "24"
"Hongkong": "55"
"Kwajalein": "0"
"Pacific/Auckland": "71"
"Pacific/Fiji": "72"
"Pacific/Guam": "66"
"Pacific/Kiritimati": "76"
"Pacific/Kwajalein": "0"
"Pacific/Port_Moresby": "66"
"Pacific/Samoa": "86"
"Singapore": "57"
"US/Alaska": "3"
"US/Arizona": "5"
"US/Hawaii": "2"
"US/Samoa": "86"
"UTC": "24"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment