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.

incorrect month returned on 'bind time'

Old posts that have not been replied to for several years.
Locked
a
ashtaroth

incorrect month returned on 'bind time'

Post by ashtaroth »

Hi all,

Just been messing with a procedure that is setup on a bind time and am experiencing an issue where the date is one month behind. I have checked my system clock and that is all sweet. When I use clock to get the time it returns all the correct data, but the actual procedure is not returning the month correctly. I have pasted some info to help if my above explanation is a little confusing...

I have the bind setup as:
bind time - "?? * * * *" show_newday

with the simple procedure:
proc show_newday { min hour day month year } {
putmsg ashtaroth "$min $hour $day $month $year"
}

Current system time:
Wed Oct 06 08:06:27 AM UTC 2004

Procedure returns:
06 08 06 09 2004

I have checked that Oct = 10 about 5 times to ensure I am not making a total jack out of myself

Would be interested if anyone could enlighten me on why this might be happening. Whether it is my own stupidity or a legit bug.

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

Post by Alchera »

Check these settings in your eggdrop configuration:

Code: Select all

set timezone "CST"

set offset "5"
You need to know the time zone (GMT+/-) of the bots' physical location. Might solve your problem. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Search up [ctime], [unixtime], [duration], [clock], [format] in tcl-commands.doc and use those, according the the format you want to return your date/time in. They are much better and give accurate information, no matter what timezone you have set in the bots configuration file.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

awyeah wrote:no matter what timezone you have set in the bots configuration file.
Really?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I guess so, mine works fine. :lol:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I use a script that gets time/date information and believe me if I do not have the setting in the bots' configuration correctly set it can be way out. The reason being time zone selection. The information is taken from where the bot physically is.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked