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

Problem with time.

Scheduled Pinned Locked Moved
FOG Problems
2
2
920
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.
  • A
    alserran
    last edited by Aug 18, 2014, 11:50 AM

    Hello guys.

    I have a problem with my recent installation (FOG 1.2.0 + Ubuntu 14.04). All it works perfectly, but there is a thing that not finish to work well.

    This issue is about the time in logs. All actions in FOG (uploads, downloads, logins history, etc) keep registered with 2 hours less than actual. In the bandwith graph the time is correct and in the progress bar (for example in a upload) the time is correct too.

    The time in server is correct, and the time in PHP is correct too. If I put a PHP scrip with this code ([SIZE=14px][FONT=Consolas][COLOR=#000000]<?php[/COLOR][/FONT][/SIZE]
    [SIZE=14px][FONT=Consolas][COLOR=#000000]echo "The time is " . date(“h:i:sa”);[/COLOR][/FONT][/SIZE]
    [SIZE=14px][FONT=Consolas][COLOR=#000000]?>[/COLOR][/FONT][/SIZE]), i get the correct time.

    Can you help me. I dont know where is the problem.

    Thanks.

    1 Reply Last reply Reply Quote 0
    • C
      cadyfish
      last edited by Aug 18, 2014, 2:58 PM

      First go to [url]http://us2.php.net/manual/en/timezones.php[/url] and notate which timezone you are in example “America/Chicage”.

      On your fog machine enter the following command (if you dont have nano installed use vi instead)
      [CODE]sudo nano /etc/php5/apache2/php.ini[/CODE]

      Find the line that starts with “date.timezone =” {enter in you timezone}
      example date.timezone = America/Chicago

      Save and exit then run
      [CODE]sudo service apache2 restart[/CODE]

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

      166

      Online

      12.1k

      Users

      17.3k

      Topics

      155.3k

      Posts
      Copyright © 2012-2024 FOG Project