Change timezone

Discussion in 'Installation/Configuration' started by pecka33, Aug 22, 2024.

  1. pecka33

    pecka33 Member

    Hello, is here any easy and save way how to change timezone of my server? I am using latest ispconfig and debian. Thank you.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Change the time zone in Debian, e.g. timedatectl:

    1) List available time zones:

    timedatectl list-timezones

    2) Set the desired time zone with e.g.

    timedatectl set-timezone Europe/Berlin

    3) Set the time zone also in /usr/local/ispconfig/server/lib/config.inc.php and /usr/local/ispconfig/interface/lib/config.inc.php
     
    ahrasis likes this.
  3. pecka33

    pecka33 Member

    Thank you so much. I Check it and problem is that in case i use timedatectl i can see right local time - 09.54 but universal time is 07.54 and i can not found why this time is different and where can i change it.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What time is different?
    If daylight saving time is used, it affects the local time.
     
  5. pecka33

    pecka33 Member

    Thank you. I mean this

    Code:
    timedatectl  status
                   Local time: Mon 2024-08-26 17:04:09 CEST
               Universal time: Mon 2024-08-26 15:04:09 UTC
                     RTC time: Mon 2024-08-26 15:04:09
                    Time zone: Europe/Berlin (CEST, +0200)
    System clock synchronized: yes
                  NTP service: n/a
              RTC in local TZ: no
    

    I would like to have same time local time and universal time, but can not found where i can set it. I need to have local and universal time Mon 2024-08-26 17:04:09 CEST
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The settings are fine at the moment if your local time is European time. However, if you want a different time zone, like UTC, you must set that time zone instead of the European time zone.
     
  7. pecka33

    pecka33 Member

    Thank you. Yes, i tried it but does not work for me. I would like to have all time set as local time, but does not work for me, i tried to set local time too but still same.
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What does not work? Show how you changed the timezone.
    I tried on my host, setting timezone to UTC makes Local Time, Universal Time and RTC time show the same value.
    If you want UTC to show Berlin time, you would need to convince international bodies to move Greenwich meridian to Berlin.
    An easier method might be to disable NTP time syncronization, and set manually RTC to your local time and configure set-local-rtc to 1. I think timezone would need to be UTC in this situation but I am too tired now to think this through.
    timedatectl man page warns about setting RTC to local time, so it might not be a good idea.
     

Share This Page