Created
August 4, 2017 03:34
-
-
Save dvmonroe/bf0752b8819bcd683f61fc2e91903bd6 to your computer and use it in GitHub Desktop.
ActiveSupport::TimeZone mapping by state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TimeZoneStateHelper | |
STATE_TIME_ZONES = { | |
AK: "Alaska", | |
AL: "Central Time (US & Canada)", | |
AR: "Central Time (US & Canada)", | |
AZ: "Pacific Time (US & Canada)", # use the furthest time | |
CA: "Pacific Time (US & Canada)", | |
CO: "Mountain Time (US & Canada)", | |
CT: "Eastern Time (US & Canada)", | |
DC: "Eastern Time (US & Canada)", | |
DE: "Eastern Time (US & Canada)", | |
FL: "Eastern Time (US & Canada)", | |
GA: "Eastern Time (US & Canada)", | |
HI: "Hawaii", | |
IA: "Central Time (US & Canada)", | |
ID: "Mountain Time (US & Canada)", | |
IL: "Central Time (US & Canada)", | |
IN: "Eastern Time (US & Canada)", | |
KS: "Central Time (US & Canada)", | |
KY: "Central Time (US & Canada)", | |
LA: "Central Time (US & Canada)", | |
MA: "Eastern Time (US & Canada)", | |
MD: "Eastern Time (US & Canada)", | |
ME: "Eastern Time (US & Canada)", | |
MI: "Eastern Time (US & Canada)", | |
MN: "Central Time (US & Canada)", | |
MO: "Central Time (US & Canada)", | |
MS: "Central Time (US & Canada)", | |
MT: "Mountain Time (US & Canada)", | |
NC: "Eastern Time (US & Canada)", | |
ND: "Central Time (US & Canada)", | |
NE: "Central Time (US & Canada)", | |
NH: "Eastern Time (US & Canada)", | |
NJ: "Eastern Time (US & Canada)", | |
NM: "Mountain Time (US & Canada)", | |
NV: "Pacific Time (US & Canada)", | |
NY: "Eastern Time (US & Canada)", | |
OH: "Eastern Time (US & Canada)", | |
OK: "Central Time (US & Canada)", | |
OR: "Pacific Time (US & Canada)", | |
PA: "Eastern Time (US & Canada)", | |
RI: "Eastern Time (US & Canada)", | |
SC: "Eastern Time (US & Canada)", | |
SD: "Central Time (US & Canada)", | |
TN: "Central Time (US & Canada)", | |
TX: "Central Time (US & Canada)", | |
UT: "Mountain Time (US & Canada)", | |
VA: "Eastern Time (US & Canada)", | |
VT: "Eastern Time (US & Canada)", | |
WA: "Pacific Time (US & Canada)", | |
WI: "Central Time (US & Canada)", | |
WV: "Eastern Time (US & Canada)", | |
WY: "Mountain Time (US & Canada)", | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment