• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Image upload time incorrect

Scheduled Pinned Locked Moved
FOG Problems
5
17
8.0k
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.
  • P
    PomonaIT
    last edited by Sep 11, 2014, 5:56 PM

    [quote=“Tom Elliott, post: 36547, member: 7271”]“If it isn’t broken, don’t fix it.”

    It isn’t “broken” persay. It’s not even a “problem” persay.

    Your /etc/apache2/php/php.ini? Maybe needs the date.timezone?[/quote]

    Let me check that out and see what is set. Thanks.

    1 Reply Last reply Reply Quote 0
    • P
      PomonaIT
      last edited by Sep 11, 2014, 8:28 PM

      [quote=“PomonaIT, post: 36554, member: 24658”]Let me check that out and see what is set. Thanks.[/quote]

      I am using Ubuntu, so I found the php.ini at /etc/php5/apache2/. The date.timezone setting was blank, so I added “date.timezone = America/Los_Angeles”. I restarted server for good measure, uploaded image and time is off by 7 hours. Any other ideas?

      1 Reply Last reply Reply Quote 0
      • J
        Junkhacker Developer
        last edited by Sep 11, 2014, 9:25 PM

        i believe you need quotes around the America/Los_Angeles part

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Sep 12, 2014, 3:41 AM

          Quotes are not needed, nor will they hurt.

          I found out the issue.

          The file you need to add the date.timezone on Ubuntu 14.04 (and possibly others?) Is in:

          (Drumroll please)
          .
          .
          .
          .
          …
          …
          [code]/etc/php5/cli/php.ini[/code]

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • P
            PomonaIT
            last edited by Sep 15, 2014, 7:15 PM

            [quote=“Tom Elliott, post: 36573, member: 7271”]Quotes are not needed, nor will they hurt.

            I found out the issue.

            The file you need to add the date.timezone on Ubuntu 14.04 (and possibly others?) Is in:

            (Drumroll please)
            .
            .
            .
            .
            …
            …
            [code]/etc/php5/cli/php.ini[/code][/quote]

            Great. I guess we have something like a 1 in 3 chance to have got it right…haha. I will give that a try.

            1 Reply Last reply Reply Quote 0
            • P
              PomonaIT
              last edited by Sep 15, 2014, 9:51 PM

              [quote=“Tom Elliott, post: 36573, member: 7271”]Quotes are not needed, nor will they hurt.

              I found out the issue.

              The file you need to add the date.timezone on Ubuntu 14.04 (and possibly others?) Is in:

              (Drumroll please)
              .
              .
              .
              .
              …
              …
              [code]/etc/php5/cli/php.ini[/code][/quote]

              Oh well, I edit the setting on both php.ini’s with and without quotes with no success.

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Sep 15, 2014, 10:31 PM

                Have you restarted the apache service after making the change? Not just refreshing the page but
                [Code]sudo service apache2 restart[/Code]

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • M
                  madeyem
                  last edited by Sep 16, 2014, 6:15 AM

                  I’m on FOG 0.32 and I have never been able to make the web interface show the correct time (e.g. in the bandwidth/transmit graph on the dashboard), although I put my time zone in every php.ini file I could find including apache restarts. I eventually gave up on that matter.

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Sep 16, 2014, 9:49 AM

                    When putting in your time zone, make sure it’s not in as:
                    [code];date.timezone = America/New_York[/code]

                    Notice the prepending semicolon? That tells the apache config files (more specifically the php.ini) that it’s to be ignored and similar to a comment.

                    Make sure the line is simply listed as:
                    [code]date.timezone = America/New_York[/code]

                    You can use quotes around the timezone as well, but I don’t think it matters as much.

                    For the web interface on ubuntu it’s /etc/php5/apache2/php.ini

                    For the CLI side (FOGMulticastManager, FOGImageReplicator, FOGScheduler) it’s /etc/php5/cli/php.ini

                    To my knowledge, there’s only two php.ini files in use for Ubuntu systems so if you place the same timezone information in both of the files, you’ll need to restart the Web server itself: (e.g. sudo service apache2 restart) and the FOG Services (e.g. sudo service FOG{MulticastManager,ImageReplicator,Scheduler} restart) for the time to start being reflected correctly. If this still doesn’t work for you, maybe your system time is not set to the local timezone either?

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 0
                    • M
                      madeyem
                      last edited by Sep 16, 2014, 10:17 AM

                      The time zones in both ini files are set correctly (in my case to Europe/Berlin). The time shown on FOG is still wrong.

                      My system time (what I get after typing date) was wrong, although it is also set to Europe/Berlin. After typing “[SIZE=14px][FONT=Ubuntu Mono][COLOR=#222222]sudo ntpdate ntp.ubuntu.com[/COLOR][/FONT][/SIZE]”, system time is correct now. However, “FOG time” is still wrong (2 hours behind).

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tom Elliott
                        last edited by Sep 16, 2014, 10:19 AM

                        Berlin is +2 hours from GMT?

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        1 Reply Last reply Reply Quote 0
                        • M
                          madeyem
                          last edited by Sep 16, 2014, 10:21 AM

                          [quote=“Tom Elliott, post: 36665, member: 7271”]Berlin is +2 hours from GMT?[/quote]

                          Yes.

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott
                            last edited by Sep 16, 2014, 10:23 AM

                            I know you said you’re sure, but is the date.timezone = Europe/Berlin, or is it ;date.timezone = Europe/Berlin?

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 0
                            • M
                              madeyem
                              last edited by Sep 16, 2014, 10:26 AM

                              Definitely no semicolon at the beginning of the line.

                              1 Reply Last reply Reply Quote 0
                              • Boyan BiandovB
                                Boyan Biandov
                                last edited by Jan 24, 2015, 9:59 PM

                                worked for me; here is the line:

                                [CODE]date.timezone = America/Los_Angeles[/CODE]

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

                                205

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project