Exception: DateTime::__construct(): Failed to parse time string (0) at position 0 (0)

Created on 13 October 2021, over 3 years ago
Updated 4 May 2024, 9 months ago

Problem/Motivation

Displays error when used on field with DateTime = 0

Steps to reproduce

  1. Setup view of users
  2. Add field User Last Login to view and set Formatter to Days ago
  3. Add a user that has not logged in

Proposed resolution

Patch to check for 0 and set output to "Never"

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States chrisjlock

Live updates comments and jobs are added and updated live.
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.71.5 2024