Timestamps aren't written correctly for internal logs

For bug reports that have been addressed or are not longer relevant

Moderators: Forum Moderators, Server Moderators

Locked
Bruno_me
Posts: 321.0
Joined: January 9th, 2008, 8:34 pm
Game Name(s): Biff Longtorso
Location: Gyros

Timestamps aren't written correctly for internal logs

Post by Bruno_me »

Here's the relevant block of code for the reports log (it's wrong in each function). You just need to change either lhour, lminute, and lsecond to ghour, gminute, and gsecond, or visa versa. I thought this got fixed a while ago, but I guess not!

Code: Select all

...
29540     getdate(year, month, day);
29541     gettime(lhour, lminute, lsecond);
29542     format(templog, sizeof(templog), "%sreport[%d-%d-%d].log",LOG_PATH,month, day, year);
29543     format(entry, sizeof(entry), "[%d/%d/%d - %d:%d:%d] - %s\n",month,day,year,ghour,gminute,gsecond,string);
... 
™©§<º))))>\m/<.·´¯`·.·÷±‡±(Bruno_me)±‡±÷¸.·´¯`·.¸>\m/<((((º>§©™

~*~ sigs off ~*~

<Racha3l> what means this
<Racha3l> [06:54:50] Detected possible bot from (86.144.252.111)
<Keru> SALMON watches a lot of Sailor Moon, I have proof
User avatar
brains
live from the moon
live from the moon
Posts: 293.0
Joined: December 31st, 2007, 11:04 am
Location: the moon
Contact:

Re: Timestamps aren't written correctly for internal logs

Post by brains »

fixd :arghy:
Locked