Commit 9d255b05 authored by deuce's avatar deuce
Browse files

Fix 2 year, 7 month old bug in displaying date/times.

Reported by Mindless Automaton
parent 6d2e84d4
......@@ -985,9 +985,9 @@ int edit_stats(scfg_t *cfg, user_t *user)
while(1) {
getuserdat(cfg,user);
i=0;
sprintf(opt[i++],"First On %s",user->firston?timestr(cfg, &user->firston, str):"Never");
sprintf(opt[i++],"Last On %s",user->laston?timestr(cfg, &user->laston, str):"Never");
sprintf(opt[i++],"Logon Time %s",user->laston?timestr(cfg, &user->logontime, str):"Not On");
sprintf(opt[i++],"First On %s",user->firston?timestr(cfg, user->firston, str):"Never");
sprintf(opt[i++],"Last On %s",user->laston?timestr(cfg, user->laston, str):"Never");
sprintf(opt[i++],"Logon Time %s",user->laston?timestr(cfg, user->logontime, str):"Not On");
sprintf(opt[i++],"Total Logons %hu",user->logons);
sprintf(opt[i++],"Todays Logons %hu",user->ltoday);
sprintf(opt[i++],"Total Posts %hu",user->posts);
......@@ -1004,7 +1004,7 @@ int edit_stats(scfg_t *cfg, user_t *user)
sprintf(opt[i++],"Total Uploads %hu",user->uls);
sprintf(opt[i++],"Uploaded Bytes %lu",user->ulb);
sprintf(opt[i++],"Leech Downloads %u",user->leech);
sprintf(opt[i++],"Password Modified %s",user->pwmod?timestr(cfg, &user->pwmod, str):"Never");
sprintf(opt[i++],"Password Modified %s",user->pwmod?timestr(cfg, user->pwmod, str):"Never");
opt[i][0]=0;
switch(uifc.list(WIN_MID|WIN_ACT,0,0,0,&j,0,"Statistics",opt)) {
case -1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment