You are not logged in.
I was just wondering if on the “Users” page the “Last Login” field could include the day of the month as well. Just having the month and year doesn’t really give much of an idea.
I was just wondering if on the “Users” page the “Last Login” field could include the day of the month as well.
+1 from me. Line 323 of txp_admin.php could be changed to:
td($last_login ? safe_strftime('%d %b %Y', $last_login) : '').
at the expense of an extra 8 bytes. Or something a little more locale-friendly might be in order?
Ha haa. I’ve just got out of hacking txplib_head.php Stef, I don’t want to start hacking something else. ;)
I’ve just got out of hacking txplib_head.php Stef
Yeah, know what you mean. I meant that it’s ludicrously easy to change in the core, should wet/ruud decide to do it. There’s no impediment to changing it as far as I can see; the only sticking point is that hardcoding the format the way I did above is likely to annoy our US chums :-) So there’s probably a better way that takes one of the date format options into account.
Last edited by Bloke (2009-04-22 15:41:56)
The “Remain logged in” cookie lives for a month. The last login date can therefore not be determined beyond that precision.
The “Remain logged in” cookie lives for a month.
Ahhhh, that makes sense. I just never noticed it because I’ve never used the ‘remain logged in’ feature… which brings about another tiny feature request, if I may hijack this thread slightly: add a jQuery
focus() call to the login box when visiting the login page, unless the cookie is set and the password has expired for some reaosn, in which case focus in the ‘password’ box (because the login has already been automatically entered).
Last edited by Bloke (2009-04-22 20:11:10)
Hmmm. I never use that either. I just wonder what use it actually is beyond sloth. I mean, don’t most browsers remember logins these days anyway which means the details get filled and you just hit enter or did I miss a point somewhere?
So could that be reduced to remain logged in for a day? Or to put it another way, why do we need to remain logged in at all?
Apologies for reviving an over 2 year old thread, but I’m wondering if a fix has ever been developed to answer Stuart’s original question – adding the day (and time if possible) to the Users “Last Login” info in the Admin area.