| View previous topic :: View next topic |
| Author |
Message |
FallFromGrace Voice
Joined: 28 Jul 2008 Posts: 17
|
Posted: Tue Jan 25, 2011 8:37 am Post subject: can't set timezone... |
|
|
I have a server with Debian linux, and it works perfect. But some time ago I have tried Ubuntu 10.10. It's almost same as Debian, but today i have found a problem which I still can't solve.
I have a 2 bots. I need to set CET (gmt-1) timezone to first of them, and GMT+0 to anther one.
I have setted up a tzconfig ( sudo dpkg-reconfigure tzdata) to GMT-1, and it works well in console:
| Quote: | [user@ip-10-10-10-10 ~]$ date
Tue Jan 25 13:33:57 GMT-1 2011
[bitnami@ip-10-10-10-10 ~]$ date -u
Tue Jan 25 12:33:59 UTC 2011 |
But bot still use UTC =(
My eggdrop.conf:
| Quote: | set timezone "GMT"
set offset "-1"
set env(TZ) "$timezone $offset" |
I have tried to change offset to another values, but it doesnt take effect at all (unlike my bots at Debian Linux)! Even if i change timezone or comment out env(TZ), bot still has UTC timezone.
How can i fix it? |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue Jan 25, 2011 6:10 pm Post subject: Re: can't set timezone... |
|
|
| FallFromGrace wrote: | My eggdrop.conf:
| Quote: | set timezone "GMT"
set offset "-1"
set env(TZ) "$timezone $offset" |
I have tried to change offset to another values, but it doesnt take effect at all (unlike my bots at Debian Linux)! Even if i change timezone or comment out env(TZ), bot still has UTC timezone.
How can i fix it? |
Um.. Why is your timezone "GMT" if you aren't in GMT/UTC? If you are GMT-1 then your timezone is "AT". Your assumption that "CET" is GMT-1 is incorrect. "CET" is GMT+1. My timezone in California, is GMT-8 or "PST". You need to use the "name" of the timezone in the timezone setting. One that eggdrop understands. Hence your use of "GMT" within the timezone setting will make the bot think you are GMT/UTC.
The offset is only ever used to tell the bot how far from GMT/UTC your time is. Not it's offset from the timezone you've set in the "timezone" setting. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
thommey Halfop
Joined: 01 Apr 2008 Posts: 73
|
Posted: Tue Jan 25, 2011 10:01 pm Post subject: |
|
|
| Code: | | set env(TZ) "$timezone $offset" |
is actually a bug (fixed in cvs), it should be
| Code: | | set env(TZ) "$timezone$offset" |
maybe that helps, too |
|
| Back to top |
|
 |
FallFromGrace Voice
Joined: 28 Jul 2008 Posts: 17
|
Posted: Wed Jan 26, 2011 2:09 pm Post subject: |
|
|
| thommey wrote: | | Code: | | set env(TZ) "$timezone $offset" |
is actually a bug (fixed in cvs), it should be
| Code: | | set env(TZ) "$timezone$offset" |
maybe that helps, too |
Thank you, it works) |
|
| Back to top |
|
 |
|