1 |
Thank you both for the quick replies. |
2 |
|
3 |
The answer to my problem is htpdate. I was searching for such an utility for |
4 |
quite some time. I still have one problem, though. When installing Gentoo, I |
5 |
probably chose the USA as my location. However, I'm located in CET (that is, |
6 |
GMT+1). From htpdate, I receive the following output: |
7 |
|
8 |
localhost liviu # /usr/sbin/htpdate -dq -P PROXY_ADDRESS:PROXY_PORT |
9 |
www.linux.org www.opera.com pool.ntp.org |
10 |
www.linux.org 03 Sep 2007 07:32:19 GMT (0.477) => -24738 |
11 |
www.linux.org 03 Sep 2007 07:32:20 GMT (0.325) => -24738 |
12 |
www.opera.com 03 Sep 2007 07:32:21 GMT (0.119) => -24738 |
13 |
www.opera.com 03 Sep 2007 07:32:22 GMT (0.117) => -24738 |
14 |
pool.ntp.org 03 Sep 2007 07:32:22 GMT (0.134) => -24738 |
15 |
pool.ntp.org 03 Sep 2007 07:32:23 GMT (0.072) => -24738 |
16 |
#: 3, mean: -24738, average: -24738.000 |
17 |
Timezone: GMT-5 (EST,EST) |
18 |
Offset -24738.000 seconds |
19 |
|
20 |
For some reason, it persistently considers my timezone EST (Eastern Standard |
21 |
Time, GMT-5). I reconsidered Gentoo's localization guide and now |
22 |
/etc/cond.d/clock contains these two options: |
23 |
|
24 |
localhost liviu # nano /etc/conf.d/clock |
25 |
[..] |
26 |
CLOCK="local" |
27 |
TIMEZONE="Europe/Berlin" |
28 |
[..] |
29 |
|
30 |
I also added TZ="Europe/Berlin" to both user and |
31 |
root ~/.bash_profile. And still, htpdate wants to synchronize my clock to EST. |
32 |
|
33 |
Any ideas on how to make htpdate think that I'm actually in the EU instead |
34 |
of the US? There was no info on the way it treats timezones, neither in the |
35 |
man page, nor on their site. I did find in their changelog: 0.6.1 ----- - |
36 |
Code clean up, use global variable 'timezone'. However, running it under new |
37 |
env gives me yet again the time synced to EST: |
38 |
|
39 |
localhost liviu # timezone="GMT+1" OR TIMEZONE="CET" htpdate -dq -P |
40 |
PROXY_ADDRESS:PROXY_PORT www.linux.org www.opera.com pool.ntp.org |
41 |
[..] |
42 |
Timezone: GMT-5 (EST,EST) |
43 |
Offset -24738.000 seconds |
44 |
|
45 |
|
46 |
Regards, |
47 |
Liviu |
48 |
|
49 |
On 9/2/07, Arturo 'Buanzo' Busleiman <buanzo@××××××××××.ar> wrote: |
50 |
> |
51 |
> -----BEGIN PGP SIGNED MESSAGE----- |
52 |
> Hash: SHA512 |
53 |
> |
54 |
> * net-misc/htpdate |
55 |
> Available versions: ~0.9.2 0.9.3 1.0.0 |
56 |
> Homepage: http://www.clevervest.com/htp/ |
57 |
> Description: Synchronize local workstation with time offered |
58 |
> by remote webservers |
59 |
> |
60 |
> |
61 |
> |
62 |
|
63 |
|
64 |
-- |
65 |
Liviu |