Ad Widget

Collapse

First weekday in the calendar of maintenance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lknsfos
    Junior Member
    • Apr 2018
    • 6

    #1

    First weekday in the calendar of maintenance

    Hi! When using a calendar to create an maintenance period first day is always Monday. Even using locale en_US, or changed locale en_GB to first_weekday 1.
    Is there a method to change this?
    Zabbix 6.0, Zabbix 7.0
    Attached Files
  • moooola
    Junior Member
    • Jul 2024
    • 29

    #2
    Hello lknsfos

    In my environment, I edit around line 507 of /usr/share/zabbix/js/class.calendar.js.
    var prev_days = this.cdt.getDay() - 1; -> var prev_days = this.cdt.getDay();

    And for details on other changes, please see the code on the reference site.

    The URL I used as reference https://qiita.com/130cmWolf/items/d517b8a662e4d08bbe62
    *Note: This is a Japanese site.
    Last edited by moooola; 23-07-2024, 04:38.

    Comment

    • melvas66
      Junior Member
      • Jul 2024
      • 1

      #3
      Originally posted by lknsfos
      Hi! When using a calendar to create an maintenance period first day is always Monday. Even using locale en_US, or changed locale en_GB to first_weekday 1.
      Is there a method to change this?
      Zabbix 6.0, Zabbix 7.0
      In Zabbix, the default start of the week is usually set to Monday, which can be adjusted through user profile settings. To change the first day of the week, go to your user profile and look for the "Locale" settings where you can set your preferred first weekday. Additionally, if you have access, check the global configuration settings for any locale options that might influence the calendar. In some cases, adjusting the source code or configuration files may be necessary if these options don't work. This applies to both Zabbix 6.0 and 7.0. Let me know if you need further help!

      Comment


      • Markku
        Markku commented
        Editing a comment
        AI hallusination? There is no preferred first weekday setting in user profile.

        Markku
    Working...