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 with 'bind time'

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

incorrect month returned with '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 :roll:

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.
a
ashtaroth

incorrect month returned with 'bind time'

Post by ashtaroth »

I have just been visiting the JunkYard to see what people have done that is incorrect and I have a feeling that this post might end up in there.

I do believe I should have posted this in the scripting section of the forum.

Sorry. I will post it in there also so this one can be removed if nessessary.

ash.
Locked