FIX: Add overrides for non-standard country codes used by holidays gem

FIX: Add overrides for non-standard country codes used by holidays gem

diff --git a/assets/javascripts/lib/regions.js.es6 b/assets/javascripts/lib/regions.js.es6
index fbecf20..50190e3 100644
--- a/assets/javascripts/lib/regions.js.es6
+++ b/assets/javascripts/lib/regions.js.es6
@@ -342,6 +342,7 @@ export const TIME_ZONE_TO_REGION = {
   "Europe/Paris": "fr",
   "Europe/London": "gb",
   "Asia/Tbilisi": "ge",
+  "Europe/Athens": "el",
   "Asia/Hong_Kong": "hk",
   "Europe/Budapest": "hu",
   "Europe/Dublin": "ie",
diff --git a/lib/tasks/javascript.rake b/lib/tasks/javascript.rake
index 9ea3b71..f0d596d 100644
--- a/lib/tasks/javascript.rake
+++ b/lib/tasks/javascript.rake
@@ -2,6 +2,7 @@
 
 TIMEZONES_DEFINITIONS = 'https://raw.githubusercontent.com/moment/moment-timezone/develop/data/meta/latest.json'
 UNUSED_REGIONS = ["ecbtarget", "federalreserve", "federalreservebanks", "fedex", "nerc", "unitednations", "ups"]
+HOLIDAYS_COUNTRY_OVERRIDES = { "gr" => "el" }
 
 task 'javascript:update_constants' => :environment do
   require 'holidays'
@@ -11,6 +12,10 @@ task 'javascript:update_constants' => :environment do
   data = JSON.parse(URI.open(TIMEZONES_DEFINITIONS).read)
   data['zones'].each do |timezone, timezone_data|
     country_code = timezone_data['countries'].first.downcase
+    if HOLIDAYS_COUNTRY_OVERRIDES.include?(country_code)
+      country_code = HOLIDAYS_COUNTRY_OVERRIDES[country_code]
+    end
+
     next if !holiday_regions.include?(country_code)
     time_zone_to_region[timezone] = country_code
   end

GitHub sha: f81dbca3