Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The "created" field type provided by Drupal core is cool, it has timestamp formatter and other functions, and can simplify the views field settings.
Comment | File | Size | Author |
---|---|---|---|
#15 | 2624224-interdiff.txt | 4.06 KB | longwave |
#8 | 2624224-created-and-changed-field-8.patch | 20.37 KB | jian he |
| |||
#8 | interdiff.txt | 1.16 KB | jian he |
#6 | 2624224-created-and-changed-field-6.patch | 20.37 KB | jian he |
| |||
#6 | interdiff.txt | 3.74 KB | jian he |
Comments
Comment #2
jian he CreditAttribution: jian he commentedComment #3
jian he CreditAttribution: jian he commentedlet views created field using the standard field plugin.
Comment #4
TR CreditAttribution: TR commentedThat's a good idea. That field type didn't exist when we first ported Ubercart to D8.
We should probably also use the 'changed' field for the order modified time and for the cart item entity modified time.
uc_order.tokens.inc needs to be fixed in the patch too.
Don't worry about the created/modified times in uc_reports - that is all being replaced by Views so there's no need to work on what we currently have (which is broken anyway).
Comment #5
jian he CreditAttribution: jian he commentedRename the modified field to changed, and change the field type from integer to changed.
Will doing field for CartItem soon.
Comment #6
jian he CreditAttribution: jian he commentedChange the changed field type for CartItem from integer to changed.
Comment #8
jian he CreditAttribution: jian he commentedFixed the testing issue: Unknown or bad timezone.
Comment #9
jian he CreditAttribution: jian he commentedComment #10
jian he CreditAttribution: jian he commentedComment #13
jian he CreditAttribution: jian he commentedOK it passed :)
Comment #15
longwaveThanks! Committed with no functional changes but some minor fixes to comments, whitespace and formatting, see attached interdiff for details.