znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
332 stars 82 forks source link

Bug - Last Mentions widget ignores date format #569

Open jtrumm opened 2 weeks ago

jtrumm commented 2 weeks ago

Environment

Expected behavior

The "Last Mentions" dashboard widget applies the date formatting and time zone conversion, based on the language and time zone selection in the user profile, to the "LASTMENTION" column like the other dashboard widgets (e.g. "Open Tickets" and pages (e.g. "Status View") in the system.

Actual behavior

The "Last Mentions" dashboard widget always shows the value in the column "LASTMENTION" formatted as yyyy-mm-dd hh:mm:ss and shows the value in UTC timezone. The date format, based on the language and time zone selection in the user profile, are ignored. See attached screenshots.

How to reproduce

Steps to reproduce the behavior:

  1. Login to Znuny and open the user profile (Personal Preferences -> User Profile)
  2. Select a language which has a different date format then yyyy-mm-dd, e.g. "English (United Kingdom)", and select a time zone different from UTC, e.g. "Europe/Berlin". Save the settings.
  3. Open the Znuny Dashboard and make sure the "Last Mentions" dashboard widget is visible
  4. Use the widget specific settings to make the CHANGED and CREATED columns visible for the "Last Mentions" widget and on any other widget.
  5. Make sure that the current user is mentioned in a ticket at least once and can at least see one ticket in a dashboard widget different from "Last Mentions", e.g. in "Open Tickets"
  6. Observe that the date format in column "LASTMENTION" of the "Last Mentions" widget is different from the format of "CHANGED" or "CREATED" within the "Last Mentions" widget and also compared to other widgets. Additionally the timestamp is displayed in UTC time zone instead of the selected user time zone.

Additional information

Screenshots

Date Format not Applied Last Mention Date Format

Time Zone not Applied Last Mention Time Zone

rkaldung commented 2 weeks ago

Internal issue 903