The error in the output of the date of voting activity

Created on 16 January 2018, about 7 years ago
Updated 8 April 2025, 5 days ago

In the voting list, I did not see the date.

I looked at the code and saw the link to the short date format.
I changed the date format before this, according to the technical requirements of the site.

      $date = \Drupal::service('date.formatter')->format($entity->getCreated() + $entity->getRuntime(), 'short');
      $output = 'Yes (until ' . rtrim(strstr($date, '-', true)) . ')';

Most likely, you need to provide another way, or to search for a substring, use not "-" but space " "

πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine darkdim Kyiv

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