Skip to content

Ensure timestamp tooltips respect locale

Lukas 'ai-pi' Eipert requested to merge leipert-24h-format-tooltip into master

What does this MR do and why?

Ensure timestamp tooltips respect locale

This introduces a new localeDateFormat formatter: asDateTimeFull. That formatter is now utilized in rendering the datetime for the tooltips.

Fix minor typo in the docs

localDateFormat => localeDateFormat

Screenshots or screen recordings

Locale Before After
en-US Screenshot_2023-11-17_at_09.33.12
en-US with forced 24h same as above
en-GB same as above
fr Screenshot_2023-11-17_at_09.35.31
de Screenshot_2023-11-17_at_09.35.12
zh-CN Screenshot_2023-11-17_at_09.33.48

How to set up and validate locally

  1. Hover any time stamp
  2. Switch your GitLab language settings and/or the time format

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Lukas 'ai-pi' Eipert

Merge request reports