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 :)
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.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | gdpr-human_readable_dates-2975962-3.patch | 631 bytes | anu17 |
timestamps-into-human-readable-config.png | 40.01 KB | Balu Ertl | |
timestamps-into-human-readable-table.png | 64.1 KB | Balu Ertl |
Comments
Comment #2
Balu ErtlComment #3
anu17 CreditAttribution: anu17 at SquintMetrics commentedHi @Balu Ertl
Attached is the patch for human readable date formats. I have picked up 'medium' date format.
Comment #4
Balu ErtlHi Anu, thanks for the patch! :)
Comment #5
Balu ErtlComment #6
mhavelant CreditAttribution: mhavelant at Brainsum for Tieto commented