Wrong timezone offset. How do I correct it? (help with zic timezone compiler)
Clash Royale CLAN TAG#URR8PPP
up vote
7
down vote
favorite
I have an iPod touch (2nd gen) and constant troubles with the clock setting itself one hour ahead of the actual time when I connect it to the computer.
long story short, When I SSH into the device:
date "+%Z"
returnsARST
which is correct (I'm in Buenos Aires, Argentina)date "+%z"
the result is-0200
, which is wrong and should be-0300
My question is: How do I correct the offset of my timezone to the real value?
I have found mentions of zic
, zdump
and references to a "IANA Time Zone Database".
I've tried to find allready compiled files in order to replace the whole "zoneinfo" folder, but the downloads I could find seem to use a different folder structure than the one on the iPod.
edit: I am looking for a way to edit or update the timezone information, so that my timezone "ARST" is configured correctly. I have found several references to a compiler named zic
.
Both zic
and zdump
are present on the device, which leads me to believe it can be done via SSH and UNIX-commands.
timezone ios
add a comment |
up vote
7
down vote
favorite
I have an iPod touch (2nd gen) and constant troubles with the clock setting itself one hour ahead of the actual time when I connect it to the computer.
long story short, When I SSH into the device:
date "+%Z"
returnsARST
which is correct (I'm in Buenos Aires, Argentina)date "+%z"
the result is-0200
, which is wrong and should be-0300
My question is: How do I correct the offset of my timezone to the real value?
I have found mentions of zic
, zdump
and references to a "IANA Time Zone Database".
I've tried to find allready compiled files in order to replace the whole "zoneinfo" folder, but the downloads I could find seem to use a different folder structure than the one on the iPod.
edit: I am looking for a way to edit or update the timezone information, so that my timezone "ARST" is configured correctly. I have found several references to a compiler named zic
.
Both zic
and zdump
are present on the device, which leads me to believe it can be done via SSH and UNIX-commands.
timezone ios
add a comment |
up vote
7
down vote
favorite
up vote
7
down vote
favorite
I have an iPod touch (2nd gen) and constant troubles with the clock setting itself one hour ahead of the actual time when I connect it to the computer.
long story short, When I SSH into the device:
date "+%Z"
returnsARST
which is correct (I'm in Buenos Aires, Argentina)date "+%z"
the result is-0200
, which is wrong and should be-0300
My question is: How do I correct the offset of my timezone to the real value?
I have found mentions of zic
, zdump
and references to a "IANA Time Zone Database".
I've tried to find allready compiled files in order to replace the whole "zoneinfo" folder, but the downloads I could find seem to use a different folder structure than the one on the iPod.
edit: I am looking for a way to edit or update the timezone information, so that my timezone "ARST" is configured correctly. I have found several references to a compiler named zic
.
Both zic
and zdump
are present on the device, which leads me to believe it can be done via SSH and UNIX-commands.
timezone ios
I have an iPod touch (2nd gen) and constant troubles with the clock setting itself one hour ahead of the actual time when I connect it to the computer.
long story short, When I SSH into the device:
date "+%Z"
returnsARST
which is correct (I'm in Buenos Aires, Argentina)date "+%z"
the result is-0200
, which is wrong and should be-0300
My question is: How do I correct the offset of my timezone to the real value?
I have found mentions of zic
, zdump
and references to a "IANA Time Zone Database".
I've tried to find allready compiled files in order to replace the whole "zoneinfo" folder, but the downloads I could find seem to use a different folder structure than the one on the iPod.
edit: I am looking for a way to edit or update the timezone information, so that my timezone "ARST" is configured correctly. I have found several references to a compiler named zic
.
Both zic
and zdump
are present on the device, which leads me to believe it can be done via SSH and UNIX-commands.
timezone ios
timezone ios
edited Nov 17 at 20:34
Rui F Ribeiro
38.2k1475123
38.2k1475123
asked Jan 26 '13 at 0:09
leugim
20619
20619
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
7
down vote
accepted
OK,
I have stumbled upon the solution.
Here's the link where I got the info from: http://brickybox.com/2009/10/18/os-x-fix-argentina-dst-october-2009
The tzdata source has changed its url. It is now to be found at: ftp://ftp.iana.org/tz/ or http://www.iana.org/time-zones for more information.
I downloaded the updated tzdata-file: in this case
tzdata2012j.tar.gz
and extracted it to a temporary folder.Then I SSHed into the iPod and copied the extracted files to the
iPod. I choseUser/Downloads
and created a new (temporary) foldertzfix
into which I copied everything.after that came the zic compile:
zic southamerica
, which took a
few short secondsthen
cp /usr/share/zoneinfo/America/Argentina/Buenos_Aires /usr/share/zoneinfo/America/Buenos_Aires
I don't understand what this realy does. Copy, and overwrite, the file with itself?
- testing
date "+%z"
anddate "+%Z"
both return correct values, now:-0300
andART
Finally! I can set the clock to the correct time without twitter refusing to login and Google authenticator throwing wrong auth codes.
1
Step 4 copies theAmerica/Argentina/Buenos_Aires
file into theAmerica/
directory. (Notice that it's notAmerica/Argentina/
.)
– a CVn
Jan 28 '13 at 8:41
Ah! Thanks @MichaelKjörling That clears it up nicely. It completely escaped my attention.
– leugim
Jan 28 '13 at 16:02
Aren't there updated packages available for iOS? That is preferrable to hacking in a file from sources.
– vonbrand
Jan 28 '13 at 16:09
@vonbrand: That was my first approach, searching for a solution. I couldn't find any updated packages. The only options seems to be "update to the newest iOS". My iPod won't perform well with iOS4, so I'm stuck with 3.1.3. I did not find a way to update only certain packages. Something I am learning to appreciate from fooling around with Ubuntu.
– leugim
Jan 28 '13 at 19:34
Also, and I did not include it in the answer because I suspect it to be offtopic, there is another separate database for the time which needs to be updated: the ICU database. It uses the same tzdata and needs to be compiled into/usr/share/icu/icudt40l.dat
. This is necessary so that the clock and calendar apps show the correct time.
– leugim
Jan 28 '13 at 19:34
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
accepted
OK,
I have stumbled upon the solution.
Here's the link where I got the info from: http://brickybox.com/2009/10/18/os-x-fix-argentina-dst-october-2009
The tzdata source has changed its url. It is now to be found at: ftp://ftp.iana.org/tz/ or http://www.iana.org/time-zones for more information.
I downloaded the updated tzdata-file: in this case
tzdata2012j.tar.gz
and extracted it to a temporary folder.Then I SSHed into the iPod and copied the extracted files to the
iPod. I choseUser/Downloads
and created a new (temporary) foldertzfix
into which I copied everything.after that came the zic compile:
zic southamerica
, which took a
few short secondsthen
cp /usr/share/zoneinfo/America/Argentina/Buenos_Aires /usr/share/zoneinfo/America/Buenos_Aires
I don't understand what this realy does. Copy, and overwrite, the file with itself?
- testing
date "+%z"
anddate "+%Z"
both return correct values, now:-0300
andART
Finally! I can set the clock to the correct time without twitter refusing to login and Google authenticator throwing wrong auth codes.
1
Step 4 copies theAmerica/Argentina/Buenos_Aires
file into theAmerica/
directory. (Notice that it's notAmerica/Argentina/
.)
– a CVn
Jan 28 '13 at 8:41
Ah! Thanks @MichaelKjörling That clears it up nicely. It completely escaped my attention.
– leugim
Jan 28 '13 at 16:02
Aren't there updated packages available for iOS? That is preferrable to hacking in a file from sources.
– vonbrand
Jan 28 '13 at 16:09
@vonbrand: That was my first approach, searching for a solution. I couldn't find any updated packages. The only options seems to be "update to the newest iOS". My iPod won't perform well with iOS4, so I'm stuck with 3.1.3. I did not find a way to update only certain packages. Something I am learning to appreciate from fooling around with Ubuntu.
– leugim
Jan 28 '13 at 19:34
Also, and I did not include it in the answer because I suspect it to be offtopic, there is another separate database for the time which needs to be updated: the ICU database. It uses the same tzdata and needs to be compiled into/usr/share/icu/icudt40l.dat
. This is necessary so that the clock and calendar apps show the correct time.
– leugim
Jan 28 '13 at 19:34
add a comment |
up vote
7
down vote
accepted
OK,
I have stumbled upon the solution.
Here's the link where I got the info from: http://brickybox.com/2009/10/18/os-x-fix-argentina-dst-october-2009
The tzdata source has changed its url. It is now to be found at: ftp://ftp.iana.org/tz/ or http://www.iana.org/time-zones for more information.
I downloaded the updated tzdata-file: in this case
tzdata2012j.tar.gz
and extracted it to a temporary folder.Then I SSHed into the iPod and copied the extracted files to the
iPod. I choseUser/Downloads
and created a new (temporary) foldertzfix
into which I copied everything.after that came the zic compile:
zic southamerica
, which took a
few short secondsthen
cp /usr/share/zoneinfo/America/Argentina/Buenos_Aires /usr/share/zoneinfo/America/Buenos_Aires
I don't understand what this realy does. Copy, and overwrite, the file with itself?
- testing
date "+%z"
anddate "+%Z"
both return correct values, now:-0300
andART
Finally! I can set the clock to the correct time without twitter refusing to login and Google authenticator throwing wrong auth codes.
1
Step 4 copies theAmerica/Argentina/Buenos_Aires
file into theAmerica/
directory. (Notice that it's notAmerica/Argentina/
.)
– a CVn
Jan 28 '13 at 8:41
Ah! Thanks @MichaelKjörling That clears it up nicely. It completely escaped my attention.
– leugim
Jan 28 '13 at 16:02
Aren't there updated packages available for iOS? That is preferrable to hacking in a file from sources.
– vonbrand
Jan 28 '13 at 16:09
@vonbrand: That was my first approach, searching for a solution. I couldn't find any updated packages. The only options seems to be "update to the newest iOS". My iPod won't perform well with iOS4, so I'm stuck with 3.1.3. I did not find a way to update only certain packages. Something I am learning to appreciate from fooling around with Ubuntu.
– leugim
Jan 28 '13 at 19:34
Also, and I did not include it in the answer because I suspect it to be offtopic, there is another separate database for the time which needs to be updated: the ICU database. It uses the same tzdata and needs to be compiled into/usr/share/icu/icudt40l.dat
. This is necessary so that the clock and calendar apps show the correct time.
– leugim
Jan 28 '13 at 19:34
add a comment |
up vote
7
down vote
accepted
up vote
7
down vote
accepted
OK,
I have stumbled upon the solution.
Here's the link where I got the info from: http://brickybox.com/2009/10/18/os-x-fix-argentina-dst-october-2009
The tzdata source has changed its url. It is now to be found at: ftp://ftp.iana.org/tz/ or http://www.iana.org/time-zones for more information.
I downloaded the updated tzdata-file: in this case
tzdata2012j.tar.gz
and extracted it to a temporary folder.Then I SSHed into the iPod and copied the extracted files to the
iPod. I choseUser/Downloads
and created a new (temporary) foldertzfix
into which I copied everything.after that came the zic compile:
zic southamerica
, which took a
few short secondsthen
cp /usr/share/zoneinfo/America/Argentina/Buenos_Aires /usr/share/zoneinfo/America/Buenos_Aires
I don't understand what this realy does. Copy, and overwrite, the file with itself?
- testing
date "+%z"
anddate "+%Z"
both return correct values, now:-0300
andART
Finally! I can set the clock to the correct time without twitter refusing to login and Google authenticator throwing wrong auth codes.
OK,
I have stumbled upon the solution.
Here's the link where I got the info from: http://brickybox.com/2009/10/18/os-x-fix-argentina-dst-october-2009
The tzdata source has changed its url. It is now to be found at: ftp://ftp.iana.org/tz/ or http://www.iana.org/time-zones for more information.
I downloaded the updated tzdata-file: in this case
tzdata2012j.tar.gz
and extracted it to a temporary folder.Then I SSHed into the iPod and copied the extracted files to the
iPod. I choseUser/Downloads
and created a new (temporary) foldertzfix
into which I copied everything.after that came the zic compile:
zic southamerica
, which took a
few short secondsthen
cp /usr/share/zoneinfo/America/Argentina/Buenos_Aires /usr/share/zoneinfo/America/Buenos_Aires
I don't understand what this realy does. Copy, and overwrite, the file with itself?
- testing
date "+%z"
anddate "+%Z"
both return correct values, now:-0300
andART
Finally! I can set the clock to the correct time without twitter refusing to login and Google authenticator throwing wrong auth codes.
answered Jan 28 '13 at 4:34
leugim
20619
20619
1
Step 4 copies theAmerica/Argentina/Buenos_Aires
file into theAmerica/
directory. (Notice that it's notAmerica/Argentina/
.)
– a CVn
Jan 28 '13 at 8:41
Ah! Thanks @MichaelKjörling That clears it up nicely. It completely escaped my attention.
– leugim
Jan 28 '13 at 16:02
Aren't there updated packages available for iOS? That is preferrable to hacking in a file from sources.
– vonbrand
Jan 28 '13 at 16:09
@vonbrand: That was my first approach, searching for a solution. I couldn't find any updated packages. The only options seems to be "update to the newest iOS". My iPod won't perform well with iOS4, so I'm stuck with 3.1.3. I did not find a way to update only certain packages. Something I am learning to appreciate from fooling around with Ubuntu.
– leugim
Jan 28 '13 at 19:34
Also, and I did not include it in the answer because I suspect it to be offtopic, there is another separate database for the time which needs to be updated: the ICU database. It uses the same tzdata and needs to be compiled into/usr/share/icu/icudt40l.dat
. This is necessary so that the clock and calendar apps show the correct time.
– leugim
Jan 28 '13 at 19:34
add a comment |
1
Step 4 copies theAmerica/Argentina/Buenos_Aires
file into theAmerica/
directory. (Notice that it's notAmerica/Argentina/
.)
– a CVn
Jan 28 '13 at 8:41
Ah! Thanks @MichaelKjörling That clears it up nicely. It completely escaped my attention.
– leugim
Jan 28 '13 at 16:02
Aren't there updated packages available for iOS? That is preferrable to hacking in a file from sources.
– vonbrand
Jan 28 '13 at 16:09
@vonbrand: That was my first approach, searching for a solution. I couldn't find any updated packages. The only options seems to be "update to the newest iOS". My iPod won't perform well with iOS4, so I'm stuck with 3.1.3. I did not find a way to update only certain packages. Something I am learning to appreciate from fooling around with Ubuntu.
– leugim
Jan 28 '13 at 19:34
Also, and I did not include it in the answer because I suspect it to be offtopic, there is another separate database for the time which needs to be updated: the ICU database. It uses the same tzdata and needs to be compiled into/usr/share/icu/icudt40l.dat
. This is necessary so that the clock and calendar apps show the correct time.
– leugim
Jan 28 '13 at 19:34
1
1
Step 4 copies the
America/Argentina/Buenos_Aires
file into the America/
directory. (Notice that it's not America/Argentina/
.)– a CVn
Jan 28 '13 at 8:41
Step 4 copies the
America/Argentina/Buenos_Aires
file into the America/
directory. (Notice that it's not America/Argentina/
.)– a CVn
Jan 28 '13 at 8:41
Ah! Thanks @MichaelKjörling That clears it up nicely. It completely escaped my attention.
– leugim
Jan 28 '13 at 16:02
Ah! Thanks @MichaelKjörling That clears it up nicely. It completely escaped my attention.
– leugim
Jan 28 '13 at 16:02
Aren't there updated packages available for iOS? That is preferrable to hacking in a file from sources.
– vonbrand
Jan 28 '13 at 16:09
Aren't there updated packages available for iOS? That is preferrable to hacking in a file from sources.
– vonbrand
Jan 28 '13 at 16:09
@vonbrand: That was my first approach, searching for a solution. I couldn't find any updated packages. The only options seems to be "update to the newest iOS". My iPod won't perform well with iOS4, so I'm stuck with 3.1.3. I did not find a way to update only certain packages. Something I am learning to appreciate from fooling around with Ubuntu.
– leugim
Jan 28 '13 at 19:34
@vonbrand: That was my first approach, searching for a solution. I couldn't find any updated packages. The only options seems to be "update to the newest iOS". My iPod won't perform well with iOS4, so I'm stuck with 3.1.3. I did not find a way to update only certain packages. Something I am learning to appreciate from fooling around with Ubuntu.
– leugim
Jan 28 '13 at 19:34
Also, and I did not include it in the answer because I suspect it to be offtopic, there is another separate database for the time which needs to be updated: the ICU database. It uses the same tzdata and needs to be compiled into
/usr/share/icu/icudt40l.dat
. This is necessary so that the clock and calendar apps show the correct time.– leugim
Jan 28 '13 at 19:34
Also, and I did not include it in the answer because I suspect it to be offtopic, there is another separate database for the time which needs to be updated: the ICU database. It uses the same tzdata and needs to be compiled into
/usr/share/icu/icudt40l.dat
. This is necessary so that the clock and calendar apps show the correct time.– leugim
Jan 28 '13 at 19:34
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f62617%2fwrong-timezone-offset-how-do-i-correct-it-help-with-zic-timezone-compiler%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown