Ad Widget

Collapse

Graphs time problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • terrylin
    Junior Member
    • Jun 2017
    • 5

    #1

    Graphs time problem

    Hi,
    I got some problem about the graphs displayed the time is different.

    The attach file 01.jpg is displayed 01(Month)/01(Day) 12:00 AM
    but the 02.jpg is displayed 01(Day)/01(Month) 12:00, and didn't show the PM/AM.
    How could I solve 02.jpg's problem?
    Many thanks.
    Last edited by terrylin; 02-02-2018, 05:08.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    I think that you should change the language setting file you are using.
    Please change the frontend.po file of the language you are using as follows.

    from:
    Code:
    "H:i"
    to:
    Code:
    "h:i A"
    Please recreate the mo file when you change it.

    ex.
    Code:
    # cd /usr/share/zabbix/locale/xx/LC_MESSAGES
    # vi frontend.po
    # cd /usr/share/zabbix/locale
    # ./make_mo.sh
    # systemctl restart httpd
    If each file does not exist in the directory, please copy it from the source file.

    date - Format a local time/date:

    Comment

    • terrylin
      Junior Member
      • Jun 2017
      • 5

      #3
      Originally posted by Atsushi
      I think that you should change the language setting file you are using.
      Please change the frontend.po file of the language you are using as follows.

      from:
      Code:
      "H:i"
      to:
      Code:
      "h:i A"
      Please recreate the mo file when you change it.

      ex.
      Code:
      # cd /usr/share/zabbix/locale/xx/LC_MESSAGES
      # vi frontend.po
      # cd /usr/share/zabbix/locale
      # ./make_mo.sh
      # systemctl restart httpd
      If each file does not exist in the directory, please copy it from the source file.

      date - Format a local time/date:
      http://php.net/manual/en/function.date.php
      Hi Atsushi,

      Thanks for your reply.
      I follow the tips to check the file: frontend.po, and it all use "H:i"(check attachment, please).
      but sometimes when I generate the graphs, it will display "h:i", so weird :/
      Attached Files

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        msgid in po file is a string before translation.
        msgstr is the translated string.
        If you want to change the display, only change the translated string.

        There are multiple target rows, but please change the notation line you want to change.
        If only HH:MM is enough, only the following lines are changed.

        Code:
        msgstr "H:i"

        Comment

        Working...