imp icon indicating copy to clipboard operation
imp copied to clipboard

Relative dates are not localized and ignore timezones (regression since IMP 6.2.27)

Open jcdelepine opened this issue 7 months ago • 1 comments

In IMP 6.2.27 (Horde 5), the message date was shown as a plain absolute timestamp, properly localized and timezone-adjusted.

In IMP 7.0.0-alpha17 (Horde 6), message dates are now shown using relative time (e.g., “18 hours ago”) via time-elements.js. However, this implementation introduces two major issues:

  1. Localization is broken The relative labels (e.g., "yesterday", "18 hours ago") are always displayed in English, regardless of the user’s language settings. The strings are hardcoded and not integrated with gettext or any translation mechanism.

  2. Timezone handling is incorrect Time differences appear to be calculated assuming UTC for both dates, ignoring the user’s actual timezone setting. For example, when reading a message sent at 8:00 UTC from a client in UTC+2, the UI incorrectly displays "2 hours ago" instead of "now".

The feature seems to have been introduced in commit 85c6d6efaf5446a2e5bfa5df68ce4ad56d444774 using time-elements.js. There is no integration with gettext or timezone logic.

This is a regression in usability compared to Horde 5.

jcdelepine avatar Jun 14 '25 11:06 jcdelepine

Thank you for reporting. This should be fixed before production release.

ralflang avatar Jul 03 '25 06:07 ralflang