Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Clock of PFsense

    General pfSense Questions
    2
    5
    7965
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dctat13 last edited by

      Hi,

      I am a beginner of PFsense and has just built a pfsense router.

      I find that the clock is running the other time zone,GMT-8 , although the time zone is properly set as "GMT +8".
      In the index page, it displays the current time with "echo date('r');". The result is attached.
      In the "System Log", date and time are shown as same as the index page.

      How can I configure to display the GMT +8 time?

      Tat

      1 Reply Last reply Reply Quote 0
      • C
        cmb last edited by

        Excerpt from the book:

        You will see unexpected behavior if you select one of the GMT offset time zones.The offsets are the
        opposite of what you would expect them to be based on their names. For example the GMT-5 zone
        is actually GMT plus 5 hours. This comes from the TZ database that FreeBSD and many other Unix
        and Unix-like operating systems use.

        Garrett Wollman described the reason for this in a  FreeBSD PR database entry [http://
        www.freebsd.org/cgi/query-pr.cgi?pr=24385]:
        These zones are included for compatibility with ancient UNIX systems. You are
        more likely to convince the TZ database developers to drop them altogether than
        you are to get them to change the definitions. In any case, FreeBSD will follow the
        practice of the TZ database.

        1 Reply Last reply Reply Quote 0
        • D
          dctat13 last edited by

          @cmb:

          Excerpt from the book:

          You will see unexpected behavior if you select one of the GMT offset time zones.The offsets are the
          opposite of what you would expect them to be based on their names. For example the GMT-5 zone
          is actually GMT plus 5 hours. This comes from the TZ database that FreeBSD and many other Unix
          and Unix-like operating systems use.

          Garrett Wollman described the reason for this in a  FreeBSD PR database entry [http://
          www.freebsd.org/cgi/query-pr.cgi?pr=24385]:
          These zones are included for compatibility with ancient UNIX systems. You are
          more likely to convince the TZ database developers to drop them altogether than
          you are to get them to change the definitions. In any case, FreeBSD will follow the
          practice of the TZ database.

          I tried to change the time zone to "GMT +12".
          The clock do not change anything. the time is still displayed with -8

          1 Reply Last reply Reply Quote 0
          • C
            cmb last edited by

            Some things won't pick up a timezone update until they're restarted, or you reboot the system. We don't recommend the GMT offset zones, pick a named zone or one of them like EST5EDT or similar for DST, depending on where you are in the world.

            1 Reply Last reply Reply Quote 0
            • D
              dctat13 last edited by

              @cmb:

              Some things won't pick up a timezone update until they're restarted, or you reboot the system. We don't recommend the GMT offset zones, pick a named zone or one of them like EST5EDT or similar for DST, depending on where you are in the world.

              All the problems are solved after time zone was set as "Asia/Hong Kong" and rebooted the system.

              Thank you so much, cmb.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post