Skip to content

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

@jcdelepine

Description

@jcdelepine

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 85c6d6e using time-elements.js. There is no integration with gettext or timezone logic.

This is a regression in usability compared to Horde 5.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions