Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Verify the time of the OS on the up.time monitoring station Monitoring Station and Database Server.
  • Login as the uptime up.time user and verify the time configuration of the uptime up.time database.
    • On MySQL:

      Code Block
      languagesql
      select now()
    • On SQL Server:

      Code Block
      languagesql
      select current_timestamp;
    • On Oracle:

      Code Block
      languagesql
      select current_timestamp() from dual;
  • To verify the PHP time configuration:
    • Browse to your /<up.time dir>/GUI directory.
    • Create a file named time.php with the following content:

...

    •  

      Code Block
      languagephp
      <?php echo "current timestamp:" .time(); echo " current time: " .date("F j, Y, g:i a");?>
    • Save the file and browse to time.php to verify: 

...

    • Code Block

...

    • language

...

    • xml
      http://<impactedhostname>:9999/time.php

If all time zones tested above match your desired time zone and you continue to experience a time discrepancy,  there the issue is likely a problem with the JVM.  To force the JVM to a specific time zone, make the following change to the wrapper.conf (Windows) or uptime.lax (Linux) file:

  • Append the following values to the additional parameters: 

    Code Block
    languagejava
    # Java Additional

...

  •  Parameters 
    wrapper.java.additional.1= -Duser.timezone=<time/

...

  • zone> 
    Info
    titleJVM Time Zone
    Where <time/zone> is a standard Java Time Zone value (click here for an alphabetical list).