Closed (fixed)
Project:
Members
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2006 at 16:21 UTC
Updated:
15 Feb 2007 at 16:45 UTC
Jump to comment: Most recent file
Under 4.7.1, all "Last Seen" dates show "36 years 22 weeks". This is from the following CVS version:
// $Id: members.module,v 1.38 2006/02/23 05:19:32 walkah Exp $
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | members_neverloggedin.patch | 610 bytes | ChrisKennedy |
Comments
Comment #1
ChrisKennedy commentedThe issue is that the users' login field is 0, because they're never logged in, and drupal is interpreting it as a date rather than a null value. Here's a patch to fix this problem:
Comment #2
ChrisKennedy commentedRTBC unless someone finds a bug - very simple patch.
Comment #3
junyor commentedI find "access" to be a more accurate value than "login". Here's what I used instead of your suggested code:
$data = ($account->login) ? format_interval(time() - $account->access) : t('Never logged in');
Comment #4
junyor commentedComment #5
walkah commentedcommitted and branched. thanks, junyor!
Comment #6
(not verified) commented