Skip to content

Instantly share code, notes, and snippets.

@Pamblam
Created July 29, 2025 14:44
Show Gist options
  • Select an option

  • Save Pamblam/1ac337d1f6892df3f89227270888ff7a to your computer and use it in GitHub Desktop.

Select an option

Save Pamblam/1ac337d1f6892df3f89227270888ff7a to your computer and use it in GitHub Desktop.
All Timezones and their SDT and DST offsets as a Javascript object. Parsed from Wikipedia.
// Ran this in the browser console to genereate the object
// https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
(async ()=>{
// Get the rows of the table
let rows = document
.querySelectorAll('.wikitable')[0]
.querySelector('tbody')
.querySelectorAll('tr');
// Filter to only include US country codes
let fRows = [...rows]
.filter(r=>{
let td = r.querySelectorAll('td')[0];
let as = [...td.querySelectorAll('a')];
let cc = as.map(a=>a.innerText);
return cc.includes('US');
});
// Parse Data
let data = fRows.map(r=>{
let tds = r.querySelectorAll('td');
let id = tds[1].innerText.trim();
let sdt = tds[4].innerText.trim();
let dst = tds[5].innerText.trim();
return {id, sdt, dst};
});
console.log(data);
})();
export default USTimezones = [
{
"id": "America/Adak",
"sdt": "−10:00",
"dst": "−09:00"
},
{
"id": "America/Anchorage",
"sdt": "−09:00",
"dst": "−08:00"
},
{
"id": "America/Atka",
"sdt": "−10:00",
"dst": "−09:00"
},
{
"id": "America/Boise",
"sdt": "−07:00",
"dst": "−06:00"
},
{
"id": "America/Chicago",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "America/Denver",
"sdt": "−07:00",
"dst": "−06:00"
},
{
"id": "America/Detroit",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Fort_Wayne",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Indiana/Indianapolis",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Indiana/Knox",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "America/Indiana/Marengo",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Indiana/Petersburg",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Indiana/Tell_City",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "America/Indiana/Vevay",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Indiana/Vincennes",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Indiana/Winamac",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Indianapolis",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Juneau",
"sdt": "−09:00",
"dst": "−08:00"
},
{
"id": "America/Kentucky/Louisville",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Kentucky/Monticello",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Knox_IN",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "America/Los_Angeles",
"sdt": "−08:00",
"dst": "−07:00"
},
{
"id": "America/Louisville",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Menominee",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "America/Metlakatla",
"sdt": "−09:00",
"dst": "−08:00"
},
{
"id": "America/New_York",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "America/Nome",
"sdt": "−09:00",
"dst": "−08:00"
},
{
"id": "America/North_Dakota/Beulah",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "America/North_Dakota/Center",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "America/North_Dakota/New_Salem",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "America/Phoenix",
"sdt": "−07:00",
"dst": "−07:00"
},
{
"id": "America/Shiprock",
"sdt": "−07:00",
"dst": "−06:00"
},
{
"id": "America/Sitka",
"sdt": "−09:00",
"dst": "−08:00"
},
{
"id": "America/Yakutat",
"sdt": "−09:00",
"dst": "−08:00"
},
{
"id": "Navajo",
"sdt": "−07:00",
"dst": "−06:00"
},
{
"id": "Pacific/Honolulu",
"sdt": "−10:00",
"dst": "−10:00"
},
{
"id": "US/Alaska",
"sdt": "−09:00",
"dst": "−08:00"
},
{
"id": "US/Aleutian",
"sdt": "−10:00",
"dst": "−09:00"
},
{
"id": "US/Arizona",
"sdt": "−07:00",
"dst": "−07:00"
},
{
"id": "US/Central",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "US/East-Indiana",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "US/Eastern",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "US/Hawaii",
"sdt": "−10:00",
"dst": "−10:00"
},
{
"id": "US/Indiana-Starke",
"sdt": "−06:00",
"dst": "−05:00"
},
{
"id": "US/Michigan",
"sdt": "−05:00",
"dst": "−04:00"
},
{
"id": "US/Mountain",
"sdt": "−07:00",
"dst": "−06:00"
},
{
"id": "US/Pacific",
"sdt": "−08:00",
"dst": "−07:00"
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment