By default a timestamp field shows as Datetime with a format.

It is configurable but not let show as is (a timestamp value.)

An example "changed" field
issue timestamp

Current options:

  • None
  • Date Time (Timestamp field)
  • Single Nested Property
  • JSON Field
  • UUID for link (link field only)
  • Date Time (Date Time field)

Where None should be let the value field as is(a timestamp) or is needed to add another option that let it.

CommentFileSizeAuthor
#3 3085552-3.patch1.24 KBvacho
timestamp.png14.98 KBvacho

Comments

vacho created an issue. See original summary.

vacho’s picture

Issue summary: View changes
vacho’s picture

StatusFileSize
new1.24 KB

I propose this patch that adds a new "Enhancer" to let Timestamp value.

This because for several reasons timestamp was modified. See https://www.drupal.org/node/2982678

wim leers’s picture

Status: Active » Needs work
Issue tags: +Needs tests, +API-First Initiative

Thanks! If this had tests, it'd be easy to land this though… :)

bbrala’s picture

Currently there are no real tests for the enhancers anywhere, so that might not be the real issue.

But; i think you can just use the DateTime enhancer and use the format: "U" for a unix timestamp. That would pretty much do the same right?