User access and login fields should default to NULL not 0

Created on 6 November 2015, over 8 years ago
Updated 6 May 2023, about 1 year ago

Problem/Motivation

Currently user access and user login fields default to 0. These should default to NULL since 0 is a perfectly valid unix timestamp and you need to be able to differentiate between 'Never logged on' and 'Logged in on januari 1st 1970'.

Case in point was #2609504: Default People display shows date since unix timestamp 0 as 'Last access'

Proposed resolution

Default access and login to NULL

Remaining tasks

Write patch and tests.

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

9.5

Component
User system 

Last updated about 10 hours ago

Created by

🇳🇱Netherlands Lendude Amsterdam

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024