Problem/Motivation

When any user visits the /user/<UID>/gdpr page of their profiles, then multiple date fields' value are listed. However, these are represented as pure raw Unix timestamps, which is not that useful for a regular human being :)
Screenshot of table

Proposed resolution

Take one of the site-wide default date format (see their config page on /admin/config/regional/date-time) of Drupal core and automatically convert these timestamps into human-readable date strings.
Screenshot of config

Remaining tasks

Figure out how to reach this config via Drupal internal APIs and implement the conversion when rendering the table.

User interface changes

Hopefully a better, more usable list of personal data.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Balu Ertl created an issue. See original summary.

Balu Ertl’s picture

Assigned: Unassigned » Balu Ertl
anu17’s picture

Status: Active » Needs review
FileSize
631 bytes

Hi @Balu Ertl

Attached is the patch for human readable date formats. I have picked up 'medium' date format.

Balu Ertl’s picture

Hi Anu, thanks for the patch! :)

Balu Ertl’s picture

Assigned: Balu Ertl » Unassigned
Issue tags: +Novice
mhavelant’s picture

Status: Needs review » Fixed

  • mhavelant committed 02f2a97 on 8.x-1.x authored by anu17
    Issue #2975962 by anu17, Balu Ertl, mhavelant: Format timestamps into...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.