Ticket #3595: tzselectIssue.txt

File tzselectIssue.txt, 9.6 KB (added by Ryan P.C. McQuen, 10 years ago)

History of commands

Line 
1root:/sources/glibc-build# mkdir -pv /usr/lib/locale
2mkdir: created directory '/usr/lib/locale'
3root:/sources/glibc-build# localedef -i cs_CZ -f UTF-8 cz_CZ.UTF-8
4root:/sources/glibc-build# localedef -i de_DE -f ISO-8859-1 de_DE
5root:/sources/glibc-build# localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
6root:/sources/glibc-build# grep Error glibc-check-log^C
7root:/sources/glibc-build# localedef -i de_DE -f UTF-8 de_DE.UTF-8
8root:/sources/glibc-build# localedef -i en_GB -f UTF-8 en_GB.UTF-8
9root:/sources/glibc-build# localedef -i en_HK -f ISO-8859-1 en_HK
10root:/sources/glibc-build# localedef -i en_PH -f ISO-8859-1 en_PH
11root:/sources/glibc-build# localedef -i en_US -f ISO-8859-1 en_US
12root:/sources/glibc-build# localedef -i en_US -f UTF-8 en_US.UTF-8
13root:/sources/glibc-build# localedef -i es_MX -f ISO-8859-1 es_MX
14root:/sources/glibc-build# localedef -i fa_IR -f UTF-8 fa_IR
15root:/sources/glibc-build# localedef -i fr_FR -f ISO-8859-1 fr_FR
16root:/sources/glibc-build# localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
17root:/sources/glibc-build# localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
18root:/sources/glibc-build# localedef -i it_IT -f ISO-8859-1 it_IT
19root:/sources/glibc-build# localedef -i it_IT -f UTF-8 it_IT.UTF-8
20root:/sources/glibc-build# localedef -i ja_JP -f EUC-JP ja_JP
21root:/sources/glibc-build# localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
22root:/sources/glibc-build# localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
23root:/sources/glibc-build# localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
24root:/sources/glibc-build# localedef -i zh_CN -f GB18030 zh_CN.GB18030
25root:/sources/glibc-build# cat > /etc/nsswitch.conf << "EOF"
26> # Begin /etc/nsswitch.conf
27>
28> passwd: files
29> group: files
30> shadow: files
31>
32> hosts: files dns
33> networks: files
34>
35> protocols: files
36> services: files
37> ethers: files
38> rpc: files
39>
40> # End /etc/nsswitch.conf
41> EOF
42root:/sources/glibc-build#
43root:/sources/glibc-build#
44root:/sources/glibc-build# tar -xf ../tzdata2013i.tar.gz
45root:/sources/glibc-build#
46root:/sources/glibc-build# ZONEINFO=/usr/share/zoneinfo
47root:/sources/glibc-build# mkdir -pv $ZONEINFO/{posix,right}
48mkdir: created directory '/usr/share/zoneinfo/posix'
49mkdir: created directory '/usr/share/zoneinfo/right'
50root:/sources/glibc-build#
51<z in etcetera southamerica northamerica europe africa antarctica \
52> asia australasia backward pacificnew systemv; do
53> zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
54> zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
55> zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
56> done
57root:/sources/glibc-build#
58root:/sources/glibc-build# cp -v zone.tab iso3166.tab $ZONEINFO
59'zone.tab' -> '/usr/share/zoneinfo/zone.tab'
60'iso3166.tab' -> '/usr/share/zoneinfo/iso3166.tab'
61root:/sources/glibc-build# zic -d $ZONEINFO -p America/New_York
62root:/sources/glibc-build# unset ZONEINFO
63root:/sources/glibc-build# tzselect
64Please identify a location so that time zone rules can be set correctly.
65Please select a continent, ocean, "coord", or "TZ".
66 1) Africa
67 2) Americas
68 3) Antarctica
69 4) Arctic Ocean
70 5) Asia
71 6) Atlantic Ocean
72 7) Australia
73 8) Europe
74 9) Indian Ocean
7510) Pacific Ocean
7611) coord - I want to use geographical coordinates.
7712) TZ - I want to specify the time zone using the Posix TZ format.
78#? 2
79Please select a country whose clocks agree with yours.
80 1) Anguilla 28) Haiti
81 2) Antigua & Barbuda 29) Honduras
82 3) Argentina 30) Jamaica
83 4) Aruba 31) Martinique
84 5) Bahamas 32) Mexico
85 6) Barbados 33) Montserrat
86 7) Belize 34) Nicaragua
87 8) Bolivia 35) Panama
88 9) Brazil 36) Paraguay
8910) Canada 37) Peru
9011) Caribbean Netherlands 38) Puerto Rico
9112) Cayman Islands 39) St Barthelemy
9213) Chile 40) St Kitts & Nevis
9314) Colombia 41) St Lucia
9415) Costa Rica 42) St Maarten (Dutch part)
9516) Cuba 43) St Martin (French part)
9617) Curacao 44) St Pierre & Miquelon
9718) Dominica 45) St Vincent
9819) Dominican Republic 46) Suriname
9920) Ecuador 47) Trinidad & Tobago
10021) El Salvador 48) Turks & Caicos Is
10122) French Guiana 49) United States
10223) Greenland 50) Uruguay
10324) Grenada 51) Venezuela
10425) Guadeloupe 52) Virgin Islands (UK)
10526) Guatemala 53) Virgin Islands (US)
10627) Guyana
107#? 49
108Please select one of the following time zone regions.
109 1) Eastern Time
110 2) Eastern Time - Michigan - most locations
111 3) Eastern Time - Kentucky - Louisville area
112 4) Eastern Time - Kentucky - Wayne County
113 5) Eastern Time - Indiana - most locations
114 6) Eastern Time - Indiana - Daviess, Dubois, Knox & Martin Counties
115 7) Eastern Time - Indiana - Pulaski County
116 8) Eastern Time - Indiana - Crawford County
117 9) Eastern Time - Indiana - Pike County
11810) Eastern Time - Indiana - Switzerland County
11911) Central Time
12012) Central Time - Indiana - Perry County
12113) Central Time - Indiana - Starke County
12214) Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee Counties
12315) Central Time - North Dakota - Oliver County
12416) Central Time - North Dakota - Morton County (except Mandan area)
12517) Central Time - North Dakota - Mercer County
12618) Mountain Time
12719) Mountain Time - south Idaho & east Oregon
12820) Mountain Standard Time - Arizona (except Navajo)
12921) Pacific Time
13022) Alaska Time
13123) Alaska Time - Alaska panhandle
13224) Alaska Time - southeast Alaska panhandle
13325) Alaska Time - Alaska panhandle neck
13426) Alaska Time - west Alaska
13527) Aleutian Islands
13628) Metlakatla Time - Annette Island
13729) Hawaii
138#? 21
139/usr/bin/tzselect: line 439: /sources/glibc-build/America/Los_Angeles: No such file or directory
140/usr/bin/tzselect: time zone files are not set up correctly
141root:/sources/glibc-build# cd
142root:~# tzselect
143/usr/bin/tzselect: line 171: /root/iso3166.tab: No such file or directory
144/usr/bin/tzselect: time zone files are not set up correctly
145root:~# cd /usr/share/zoneinfo/
146root:/usr/share/zoneinfo# tzselect
147Please identify a location so that time zone rules can be set correctly.
148Please select a continent, ocean, "coord", or "TZ".
149 1) Africa
150 2) Americas
151 3) Antarctica
152 4) Arctic Ocean
153 5) Asia
154 6) Atlantic Ocean
155 7) Australia
156 8) Europe
157 9) Indian Ocean
15810) Pacific Ocean
15911) coord - I want to use geographical coordinates.
16012) TZ - I want to specify the time zone using the Posix TZ format.
161#? 2
162Please select a country whose clocks agree with yours.
163 1) Anguilla 28) Haiti
164 2) Antigua & Barbuda 29) Honduras
165 3) Argentina 30) Jamaica
166 4) Aruba 31) Martinique
167 5) Bahamas 32) Mexico
168 6) Barbados 33) Montserrat
169 7) Belize 34) Nicaragua
170 8) Bolivia 35) Panama
171 9) Brazil 36) Paraguay
17210) Canada 37) Peru
17311) Caribbean Netherlands 38) Puerto Rico
17412) Cayman Islands 39) St Barthelemy
17513) Chile 40) St Kitts & Nevis
17614) Colombia 41) St Lucia
17715) Costa Rica 42) St Maarten (Dutch part)
17816) Cuba 43) St Martin (French part)
17917) Curacao 44) St Pierre & Miquelon
18018) Dominica 45) St Vincent
18119) Dominican Republic 46) Suriname
18220) Ecuador 47) Trinidad & Tobago
18321) El Salvador 48) Turks & Caicos Is
18422) French Guiana 49) United States
18523) Greenland 50) Uruguay
18624) Grenada 51) Venezuela
18725) Guadeloupe 52) Virgin Islands (UK)
18826) Guatemala 53) Virgin Islands (US)
18927) Guyana
190#? 49
191Please select one of the following time zone regions.
192 1) Eastern Time
193 2) Eastern Time - Michigan - most locations
194 3) Eastern Time - Kentucky - Louisville area
195 4) Eastern Time - Kentucky - Wayne County
196 5) Eastern Time - Indiana - most locations
197 6) Eastern Time - Indiana - Daviess, Dubois, Knox & Martin Counties
198 7) Eastern Time - Indiana - Pulaski County
199 8) Eastern Time - Indiana - Crawford County
200 9) Eastern Time - Indiana - Pike County
20110) Eastern Time - Indiana - Switzerland County
20211) Central Time
20312) Central Time - Indiana - Perry County
20413) Central Time - Indiana - Starke County
20514) Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee Counties
20615) Central Time - North Dakota - Oliver County
20716) Central Time - North Dakota - Morton County (except Mandan area)
20817) Central Time - North Dakota - Mercer County
20918) Mountain Time
21019) Mountain Time - south Idaho & east Oregon
21120) Mountain Standard Time - Arizona (except Navajo)
21221) Pacific Time
21322) Alaska Time
21423) Alaska Time - Alaska panhandle
21524) Alaska Time - southeast Alaska panhandle
21625) Alaska Time - Alaska panhandle neck
21726) Alaska Time - west Alaska
21827) Aleutian Islands
21928) Metlakatla Time - Annette Island
22029) Hawaii
221#? 21
222
223The following information has been given:
224
225 United States
226 Pacific Time
227
228Therefore TZ='America/Los_Angeles' will be used.
229Local time is now: Fri May 30 18:58:54 PDT 2014.
230Universal Time is now: Sat May 31 01:58:54 UTC 2014.
231Is the above information OK?
2321) Yes
2332) No
234#? 1
235
236You can make this change permanent for yourself by appending the line
237 TZ='America/Los_Angeles'; export TZ
238to the file '.profile' in your home directory; then log out and log in again.
239
240Here is that TZ value again, this time on standard output so that you
241can use the /usr/bin/tzselect command in shell scripts:
242America/Los_Angeles
243root:/usr/share/zoneinfo# cp -v /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
244'/usr/share/zoneinfo/America/Los_Angeles' -> '/etc/localtime'