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.

timezone problem

Old posts that have not been replied to for several years.
Locked
b
bucca

timezone problem

Post by bucca »

hi,
my eggdrop runs fine (finally =)) but when im in /ctcp bot chat console mode the timestamp is wrong...
i come from germany what would mean GMT+1... but the time is in console 2hours to late... e.g. its 20:00 here but in bot console stands 18:00.... i tryed so much settings.. but NONE of them changed time...

any idea??

(sorry for bad english)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

in your .conf file; uncomment timezone and offset
set timezone "UTC"

set offset "-1"
this means GMT+1
J
Jagg
Halfop
Posts: 53
Joined: Sat Jan 24, 2004 11:32 am

Post by Jagg »

I also come from germany and all I've done so far didn't changed the time i get in the partyline or in the logfile. In the .conf file I have
set timezone "UTC"
set offset "-1"
but partyline time and the time displayed in the logfile is 6 hours behind
:?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

eggdrop.conf
# This setting defines the timezone your bot is in. It's used for internal
# routines as well as for logfile timestamping and scripting purposes.
# The timezone string specifies the name of the timezone and must be three
# or more alphabetic characters. For example, Central European Time(UTC+1)
# should be "CET".
set timezone "EST"

# 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.
set offset "5"

# If you don't want to use the timezone setting for scripting purposes only,
# but instead everywhere possible, un-comment the following line.
#set env(TZ) "$timezone $offset"
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
J
Jagg
Halfop
Posts: 53
Joined: Sat Jan 24, 2004 11:32 am

Post by Jagg »

@Alchera

The server is in timezone EST, correct.

I also have timezone "EST" and offset "5" in the conf file but the time in partyline and in the /logs/channel.log is still 6 hours behind :?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

[21:33] <Bazza> [03:33] Linking to Amethystine at **.**.***.***:50023 ...
[21:33] <Bazza> [03:33] Received challenge from Amethystine... sending response ...
[21:33] <Bazza> [03:33] Linked to Amethystine.
[21:33] <Bazza> *** Linked to Amethystine
bazza.conf
set timezone "PST"

set offset "8"

set env(TZ) "$timezone $offset"
I am GMT+10 AEST and the bot is in San Francisco CA. 21:33 is my time and 03:33 is the bot's physical time on the West Coast of the U.S.A.

Understand now?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
J
Jagg
Halfop
Posts: 53
Joined: Sat Jan 24, 2004 11:32 am

Post by Jagg »

Ok, but the time in the log file is also in the server time of the bot.

So what do I have to do now that this time in the log file is EST +5 and not only EST (like the server is)?

(I thought by changing the timezone/offset in the conf file this will also change the time in the logs...)

Thanks
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

The bot will stamp all logs with it's physical time i.e time of the shell it's on.

In my case, that bit of DCC information shows a 17 hr time difference between myself and the bot. The bots I have in SF are 17 hrs behind me so I have to contend with dates also i.e when the bot displays a date of the 18th, in real time (for me) it's the 19th.

I use the time zone setting in just one script as part of a status thing; apart from being used for internal routines and logfile time stamping, that's basically all it's ever useful for.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked