Times in unix are the number of seconds since the epoch, January 1, 1970. The time you are seeing is the epoch adjusted for your timezone. This means ch->logoff is set to 0 when ctime is called.
Look at save.c in fread_char... the last logoff time isn't read into the char_data structure, but instead into a local variable, lastlogoff. I'd guess this is your problem. You'll have to modify it to read into ch->lastlogoff. --Palrich. ----- Original Message ----- From: "Nicholas Hutzell" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, January 17, 2004 2:14 AM Subject: Problem with showing time.... > I am trying to code it into whowas so people can see > when someone was last online. What i have is... > > sprintf(buf, "{CTimes Played: {G%6d {D| > {CLast Seen: %35s",f_timesplayed, (char > *)ctime(&ch->logoff)); > > but the thing is its showing > > Times Played: 11 | Last Seen: Wed > Dec 31 18:00:00 1969 > > how would i correct this to show the real time the > logged off instead of 34+ years ago? > > __________________________________ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom

