Lupu 528でのTime Zoneの設定
Posted: 12/02/26(日) 17:41
Lupu 528を使い始めた際の時刻設定でのトラブルです。他のPuppyのスレッドでも多少掲載されていますが、まとめてみました。
*問題の記述:
Lupu 528はスタート時に TimeZone の選択肢が出てきます。この表示は GMT+8 とあるので(日本で正しくは GMT+9)つい変更してしまいます。日本標準時、Asia/Tokyoなどを選ぶと、その時点では右下の時刻が正しくでてきます。しかし、後日リブートすると時間も日付も一日狂った状態ででてきます。
*解決法:
TimeZoneの選択は GMT+8のままにする。敢えて変えるなら、GMT+9を選ぶ。
当初は何かの設定の間違いか、PCのハード依存か、と思われましたが英語版のサイトにかなり詳しい説明が載っていました。どうも Linux全般に共通でPuppy, Lupuに特有ではない、が一つの結論でもあります。
解決法もタマタマ見つけた、”触らない”でも良いようです。根本的な解決法は未だ変更が反映されていないかも知れません。Webサイトを検索した限りでは以下が現状のようです。大半が英文のコピーですので、適当に読み飛ばしてください。
*問題の事例*
Q1) I am now in Lupu528 and it shows the wrong time every time I boot up.
I told it to use Stockholm, Berlin, Paris, time which is GMT +1 hour. but when I boot it is one hour more. I use the set time and set it to correct time and next day it is one hour wrong in same way. Any idea?
A1) The code in /usr/sbin/timezone-set is wrong . In case of GMT the script reverts - to + and vice versa . In fact quite the reverse is true .
The timezone is part of the Gnu GLIBC and might had been wrong once before Puppy 4 series but now it seems ok .
(Puppy 4シリーズでエラーがあったがその後修正が入った)(特に顕在化していなかった)
The /usr/sbin/timezone-set is also part now of quicksetup and had many locale adjustments but this part is still left to revert the GMT from - to + .
(Lupu528で使う quicksetup で戻ってしまった)
This had been posted in the murga bug section not too long ago , without being recognized by BK ,
I have actually commented this reverting part in the code , which occurs two times there iirc .
I have not downloaded any of the pemasu Puppies yet , so can not check if the code is different there .
(Barry氏が気付いていないようだ、とのコメントも)
*事例2*
Q2) In my case, the time zone shown was wrong.
If I use Menu/Settings/Set Timezone to correct it, I succeed only if I specify my time zone as Europe/Athens. If I specify it as GMT+2 and then check it running the date command, the system reports a GMT-2 time zone. If I subsequently use Menu/Settings/P-Sync Time Server Synchroniser, I get into a real mess as the time set changes in the process.
A2)
I spent some time checking Psyncs operation against the zoneinfo.
If, for instance you set your time zone using GMT with offset. i.e. GMT+4 then the following confusion occurs.
If you set your hardware time in a terminal using " hwclock --utc " then obviously it will set to UTC, BUT and it's a confusing one, the time reported in the terminal by hwclock is in localtime.
Yes that's right, localtime !! Even though you have just used the command, it illogically reports back in localtime from the zoneinfo to the terminal.
However the tray clock will show UTC plus the offset! Which is correct.
This can be most confusing for some.
* 答の一つ
Perhaps I should change the header to "True offset to UTC" to explain it better.
(Rob)
これは”header"が誤解を招いているので、header を変えればいい(ユーザーは何もしない、の意味にもなります)。
*更に
It reads the zoneinfo and reports what it finds there. Zoneinfo has reverse notation, this is the Unix standard, not Puppy's fault.
と、根本は Unix Standard まで戻る話になってきます。
GMT+1 always means +1 hour , not east of Greenwich and the same for GMT-1
The script /usr/sbin/timezone-set changes GMT+[0-9]* to GMT-[0-9]* and vice versa .
Having had the timezone to GMT-1 the date command showed the "correct BIOS local time" .
The time zone is a little bit problematic @boot , because the correct local BIOS time is ignored by the kernel first and somehow gets adjusted after the drivers get loaded .
Puppy kernels have not much rtc drivers enabled by default . The most annoying thing is that the mount time of a partition gets not notified correctly to the superblock of the partition and running a fsck on the partition 4 hours later for example would say something like "Superblock last mount time is in the future , adjust ? (y)" or similar .
色々、コメント、議論があるようですがユーザーとしては当面 ”触らぬ timezone"で十分かと。
ご参考に。
*問題の記述:
Lupu 528はスタート時に TimeZone の選択肢が出てきます。この表示は GMT+8 とあるので(日本で正しくは GMT+9)つい変更してしまいます。日本標準時、Asia/Tokyoなどを選ぶと、その時点では右下の時刻が正しくでてきます。しかし、後日リブートすると時間も日付も一日狂った状態ででてきます。
*解決法:
TimeZoneの選択は GMT+8のままにする。敢えて変えるなら、GMT+9を選ぶ。
当初は何かの設定の間違いか、PCのハード依存か、と思われましたが英語版のサイトにかなり詳しい説明が載っていました。どうも Linux全般に共通でPuppy, Lupuに特有ではない、が一つの結論でもあります。
解決法もタマタマ見つけた、”触らない”でも良いようです。根本的な解決法は未だ変更が反映されていないかも知れません。Webサイトを検索した限りでは以下が現状のようです。大半が英文のコピーですので、適当に読み飛ばしてください。
*問題の事例*
Q1) I am now in Lupu528 and it shows the wrong time every time I boot up.
I told it to use Stockholm, Berlin, Paris, time which is GMT +1 hour. but when I boot it is one hour more. I use the set time and set it to correct time and next day it is one hour wrong in same way. Any idea?
A1) The code in /usr/sbin/timezone-set is wrong . In case of GMT the script reverts - to + and vice versa . In fact quite the reverse is true .
The timezone is part of the Gnu GLIBC and might had been wrong once before Puppy 4 series but now it seems ok .
(Puppy 4シリーズでエラーがあったがその後修正が入った)(特に顕在化していなかった)
The /usr/sbin/timezone-set is also part now of quicksetup and had many locale adjustments but this part is still left to revert the GMT from - to + .
(Lupu528で使う quicksetup で戻ってしまった)
This had been posted in the murga bug section not too long ago , without being recognized by BK ,
I have actually commented this reverting part in the code , which occurs two times there iirc .
I have not downloaded any of the pemasu Puppies yet , so can not check if the code is different there .
(Barry氏が気付いていないようだ、とのコメントも)
*事例2*
Q2) In my case, the time zone shown was wrong.
If I use Menu/Settings/Set Timezone to correct it, I succeed only if I specify my time zone as Europe/Athens. If I specify it as GMT+2 and then check it running the date command, the system reports a GMT-2 time zone. If I subsequently use Menu/Settings/P-Sync Time Server Synchroniser, I get into a real mess as the time set changes in the process.
A2)
I spent some time checking Psyncs operation against the zoneinfo.
If, for instance you set your time zone using GMT with offset. i.e. GMT+4 then the following confusion occurs.
If you set your hardware time in a terminal using " hwclock --utc " then obviously it will set to UTC, BUT and it's a confusing one, the time reported in the terminal by hwclock is in localtime.
Yes that's right, localtime !! Even though you have just used the command, it illogically reports back in localtime from the zoneinfo to the terminal.
However the tray clock will show UTC plus the offset! Which is correct.
This can be most confusing for some.
* 答の一つ
Perhaps I should change the header to "True offset to UTC" to explain it better.
(Rob)
これは”header"が誤解を招いているので、header を変えればいい(ユーザーは何もしない、の意味にもなります)。
*更に
It reads the zoneinfo and reports what it finds there. Zoneinfo has reverse notation, this is the Unix standard, not Puppy's fault.
と、根本は Unix Standard まで戻る話になってきます。
GMT+1 always means +1 hour , not east of Greenwich and the same for GMT-1
The script /usr/sbin/timezone-set changes GMT+[0-9]* to GMT-[0-9]* and vice versa .
Having had the timezone to GMT-1 the date command showed the "correct BIOS local time" .
The time zone is a little bit problematic @boot , because the correct local BIOS time is ignored by the kernel first and somehow gets adjusted after the drivers get loaded .
Puppy kernels have not much rtc drivers enabled by default . The most annoying thing is that the mount time of a partition gets not notified correctly to the superblock of the partition and running a fsck on the partition 4 hours later for example would say something like "Superblock last mount time is in the future , adjust ? (y)" or similar .
色々、コメント、議論があるようですがユーザーとしては当面 ”触らぬ timezone"で十分かと。
ご参考に。