egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

can't set timezone...

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
FallFromGrace
Voice


Joined: 28 Jul 2008
Posts: 17

PostPosted: Tue Jan 25, 2011 8:37 am    Post subject: can't set timezone... Reply with quote

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
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Tue Jan 25, 2011 6:10 pm    Post subject: Re: can't set timezone... Reply with quote

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? Rolling Eyes 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
View user's profile Send private message
thommey
Halfop


Joined: 01 Apr 2008
Posts: 73

PostPosted: Tue Jan 25, 2011 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
FallFromGrace
Voice


Joined: 28 Jul 2008
Posts: 17

PostPosted: Wed Jan 26, 2011 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber