This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

eggdrop not setting the correct time and/or timezone

Old posts that have not been replied to for several years.
Locked
I
Imoq

eggdrop not setting the correct time and/or timezone

Post by Imoq »

Hi!

I just setup my eggdrop bot, but it thinks he is living 12 hours ahead, as I show you here:

[16:38] #Imoq# status
I am GR-Master, running eggdrop v1.6.13: 6 users (mem: 97k)
Online for 03:05 (background) CPU 00:04 cache hit 62.2%
Admin: Imoq <email: imoq@mydomain.com>
Config file: ./GR-Master.conf
OS: Linux 2.4.18-18.7.x
Tcl library: /usr/lib/tcl8.3
Tcl version: 8.3.3 (header version 8.3.3)
Channels: #ImoqLand(want ops!), #station51(want ops!),
Online as: GR-Master!gr-master@Station51.2166FBBE5959E0.TR (Bot Master!)
Server irc.server.net:6667 (connected for 03:05)
#ImoqLand : 3 members, enforcing "+stn-klim" (greet, auto-op)
#station51: 3 members, enforcing "+tn" (greet, auto-op)

As you can see from the "status" command, it thinks that right now it is 16:38, however, right now it's 04:38 (morning) as I show from the server where it's running:

[imoq@server eggdrop]$ date
Sat Dec 28 04:39:08 CST 2002
[imoq@server eggdrop]$

The relevant (I think) settings in eggdrop.conf are the following:

set timezone "CST"
set offset "-6"
set env(TZ) "$timezone $offset"

I alredy tried to change offset to -18 to see if it helped in anyway, but it didn't.

Could you please tell me what am I doing wrong?

Thank you for your help.

Imoq.
I
Imoq

Post by Imoq »

It seems that the problem was this line:

#set env(TZ) "$timezone $offset"

I uncommented it and broke the time of bot. I had to comment it again, kill the bot and when it came back it's time was correct.

Perhaps it is a bug?
N
N_Yo_FACE

Post by N_Yo_FACE »

The problem is with your "set offset" line. Going by what the example config file says:

# The offset setting specifies the time value to be added to the local
# time to get Coordinated Universal Time (UTC aka GMT). The offset is
# positive if the local timezone is west of the Prime Meridian and
# negative if it is east. The value (in hours) must be between -23 and
# 23. For example, if the timezone is UTC+1, the offset is -1.

You be "set offset 6" since you live west of teh Primer Meridian and CST is UTC-6. Hope this helps. :o)
Locked