Skip to content

Commit

Permalink
v2.19
Browse files Browse the repository at this point in the history
2.19
2 November 2020
* #38 - Fix for AoE date - more updates
* #22 - Added more UTC timezones
  • Loading branch information
jaroslawhartman committed Nov 3, 2020
1 parent e9a39c1 commit c99f887
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 8 deletions.
Binary file renamed TimeZones-v2.18.zip → TimeZones-v2.19.zip
Binary file not shown.
41 changes: 39 additions & 2 deletions source/GeoLite2-City-Locations-en.csv
Original file line number Diff line number Diff line change
Expand Up @@ -103728,5 +103728,42 @@ geoname_id,locale_code,continent_code,continent_name,country_iso_code,country_na
11903646,en,EU,Europe,AT,Austria,7,Tyrol,,,Angerberg,,Europe/Vienna,1
11903690,en,EU,Europe,SK,Slovakia,BL,Bratislava,,,Vinosady,,Europe/Prague,1
11909785,en,AS,Asia,KR,"Republic of Korea",46,Jeollanam-do,,,Haman,,Asia/Seoul,0
99999998,AoE,AoE,N/A,N/A,"Anywhere on Earth (AoE)",N/A,N/A,,,"Anywhere on Earth (AoE)",,UTC+12,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC)",,UTC,0
99999998,AoE,AoE,N/A,N/A,"Anywhere on Earth (AoE)",N/A,N/A,,,"Anywhere on Earth (AoE)",,UTC-12,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC)",,UTC,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+1)",,UTC+1,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+2)",,UTC+2,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+3)",,UTC+3,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+3:30)",,UTC+3:30,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+4)",,UTC+4,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+4:30)",,UTC+4:30,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+5)",,UTC+5,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+5:30)",,UTC+5:30,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+5:45)",,UTC+5:45,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+6)",,UTC+6,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+6:30)",,UTC+6:30,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+7)",,UTC+7,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+8)",,UTC+8,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+8:45)",,UTC+8:45,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+9)",,UTC+9,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+9:30)",,UTC+9:30,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+10)",,UTC+10,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+10:30)",,UTC+10:30,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+11)",,UTC+11,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+12)",,UTC+12,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+12:45)",,UTC+12:45,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+13)",,UTC+13,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC+14)",,UTC+14,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−01)",,UTC−01,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−02)",,UTC−02,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−03)",,UTC−03,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−03:30)",,UTC−03:30,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−04)",,UTC−04,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−05)",,UTC−05,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−06)",,UTC−06,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−07)",,UTC−07,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−08)",,UTC−08,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−09)",,UTC−09,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−09:30)",,UTC−09:30,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−10)",,UTC−10,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−11)",,UTC−11,0
99999999,utc,UTC,N/A,N/A,"Coordinated Universal Time (UTC)",N/A,N/A,,,"Coordinated Universal Time (UTC−12)",,UTC−12,0
19 changes: 15 additions & 4 deletions source/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@
<integer>0</integer>
<key>font</key>
<string></string>
<key>ignoredynamicplaceholders</key>
<false/>
<key>largetypetext</key>
<string>{query} (copied to clipboard)</string>
<key>textcolor</key>
Expand Down Expand Up @@ -435,6 +437,8 @@
<false/>
<key>clipboardtext</key>
<string>{query}</string>
<key>ignoredynamicplaceholders</key>
<false/>
<key>transient</key>
<false/>
</dict>
Expand Down Expand Up @@ -1005,7 +1009,7 @@
</dict>
</array>
<key>readme</key>
<string>TimeZones v2.17
<string>TimeZones v2.19
18 August 2020
Expand Down Expand Up @@ -1051,6 +1055,15 @@ CHANGELOG
All issues tracked on GitHub https://github.com/jaroslawhartman/TimeZones-Alfred/issues
2.19
2 November 2020
* #38 - Fix for AoE date - more updates
* #22 - Added more UTC timezones
2.18
2 November 2020
* #38 - Fix for AoE date
2.17
18 August 2020
* #26 - Added support for AoE
Expand Down Expand Up @@ -1408,10 +1421,8 @@ v1.0
<integer>1040</integer>
</dict>
</dict>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.17</string>
<string>2.18</string>
<key>webaddress</key>
<string>https://jhartman.pl/tag/time-zones/</string>
</dict>
Expand Down
14 changes: 12 additions & 2 deletions source/timezone_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,18 @@ while IFS='|' read -r city country timezone country_code telephone_code favourit

setTimeOptionArguments="-jf %Y%m%d%H%M%S%z $dateToConvert$timeToConvert$timezoneOffsetToConvert"

city_time=$(TZ=$timezone date $setTimeOptionArguments +"$TIME_FORMAT_STR")
city_date=$(TZ=$timezone date $setTimeOptionArguments +"%A, %d %B %Y" )
# UTC hours needs swap the sign (minus)->(plus) and vice-versa

if [[ "$timezone" == *UTC-* ]]
then
timezoneOpposite="${timezone/-/+}"
elif [[ "$timezone" == *UTC+* ]]
then
timezoneOpposite="${timezone/+/-}"
fi

city_time=$(TZ=$timezoneOpposite date $setTimeOptionArguments +"$TIME_FORMAT_STR")
city_date=$(TZ=$timezoneOpposite date $setTimeOptionArguments +"%A, %d %B %Y" )

#Determine flag icon
country_flag="$(echo "$country" | tr '[A-Z]' '[a-z]')"
Expand Down

0 comments on commit c99f887

Please sign in to comment.