2

in grafana.ini I have set

[date_formats]
full_date = YYYY-MMM-DD @ HH:mm:ss a
interval_second = HH:mm:ss a
interval_minute = HH:mm a
interval_hour = MMM DD HH:mm a
interval_day = MMM DD
interval_month = YYYY-MM
interval_year = YYYY

(ISO8601) but in the time range selection there is still 'am' and 'pm'.

How can I remove this?

4
  • Welcome to SuperUser! Try removing the a at the end of the time. Jul 30, 2021 at 7:04
  • It works - thanks. As far I knew just capital HH instead of 'hh' like for strftime() in C and POSIX for that.
    – LeifSec
    Jul 30, 2021 at 7:42
  • HH allows to the hours from 00 to 23. The a determines whether AM or PM should be shown or not. That's why removing it works. Should I write an answer? Jul 30, 2021 at 9:30
  • Well it solves the problem -> yes
    – LeifSec
    Jul 30, 2021 at 10:40

1 Answer 1

1

The a at the end of the time indicates the part of the day AM or PM. Although you have changed the hours from hh to HH for 24h, keeping the a retains AM or PM. Removing it removes AM/PM.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .