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

    fix current time

    Scheduled Pinned Locked Moved General pfSense Questions
    21 Posts 5 Posters 2.0k Views 5 Watching
    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.
    • johnpozJ Offline
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz

      And what TZ are you set to in the general section? Brazil has what 4 different TZs

      What is the output of your date cmd, what tz does it show?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 25.07 | Lab VMs 2.8, 25.07

      1 Reply Last reply Reply Quote 0
      • G Offline
        guilherme_egb
        last edited by

        I'm using the TZ America/Sao_Paulo.

        After typing the date command show:
        Mon Nov 11 15:28:50 -03 2019
        It's correct.

        But in the dashboard show me 16:28:50.

        1 Reply Last reply Reply Quote 0
        • johnpozJ Offline
          johnpoz LAYER 8 Global Moderator
          last edited by

          Do

          [2.4.4-RELEASE][admin@sg4860.local.lan]/root: date -u
          Mon Nov 11 18:34:28 UTC 2019
          [2.4.4-RELEASE][admin@sg4860.local.lan]/root: date
          Mon Nov 11 12:34:31 CST 2019
          

          Post the output

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 25.07 | Lab VMs 2.8, 25.07

          1 Reply Last reply Reply Quote 0
          • G Offline
            guilherme_egb
            last edited by

            2019-11-11 (2).png

            1 Reply Last reply Reply Quote 0
            • johnpozJ Offline
              johnpoz LAYER 8 Global Moderator
              last edited by

              Something not right there.. less it took you like 8 minutes between doing the command ;)

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 25.07 | Lab VMs 2.8, 25.07

              1 Reply Last reply Reply Quote 0
              • G Offline
                guilherme_egb
                last edited by

                Yes, anything is wrong.

                I guess that the better solution is upgrade the pfsense.

                1 Reply Last reply Reply Quote 0
                • johnpozJ Offline
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  Not sure of all the changes - but its quite possible there was some change to TZ info between your version and current, etc.. I would for sure update to current... And then if we find a problem with the TZ settings we can submit the problem.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 25.07 | Lab VMs 2.8, 25.07

                  1 Reply Last reply Reply Quote 0
                  • jimpJ Offline
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    Also, under System > General Setup, pick a Timezone with a geographic name close to you, do not pick GMT +/- offset type zone.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    P 1 Reply Last reply Reply Quote 0
                    • GertjanG Online
                      Gertjan
                      last edited by

                      Also : your system is repaired now https://forum.netgate.com/topic/148033/php-error-timezone ?

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        guilherme_egb
                        last edited by

                        Yes, this PHP problem has been solved.

                        Thanks for helping.

                        1 Reply Last reply Reply Quote 0
                        • johnpozJ Offline
                          johnpoz LAYER 8 Global Moderator
                          last edited by

                          So now your time shows correct?

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 25.07 | Lab VMs 2.8, 25.07

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            guilherme_egb
                            last edited by

                            I've reboot my pfsense today and then the php is working.

                            1 Reply Last reply Reply Quote 0
                            • johnpozJ Offline
                              johnpoz LAYER 8 Global Moderator
                              last edited by johnpoz

                              Not what I asked exactly, but take that as a yes to your time is now showing correct everywhere ;)

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 25.07 | Lab VMs 2.8, 25.07

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                guilherme_egb
                                last edited by

                                Sorry, I've answered wrong.

                                Today, I'll try to change my time manually.

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  paulo_pera @jimp
                                  last edited by

                                  @jimp I'm from Brazil and under System > General Setup, pick a Timezone > using "Etc/GMT +3 (3 hours BEHIND GM)" fix the problem for me. We usually use "America/Sao Paulo" and it works in other systems (TrueNas ie). I guess is something related to tzdata version used with pfSense or the way php is reading the value.
                                  It will be fixed in the 2.5 release https://forum.netgate.com/topic/158490/pfsense-php-time-is-incorrect-in-america-sao_paulo-time-zone/17

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.