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

Time display on dashboard always showing UTC

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
2 Posts 1 Posters 1.1k Views
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
    phil.davis
    last edited by Jun 21, 2012, 7:55 AM

    I just noticed that on recent (last few weeks?) 2.1 builds the dashboard is always displaying the date/times in UTC. Some 2.1 systems I have with builds 1 or 2 months old do not have this problem.

    /usr/local/www/guiconfig.inc has:

    $timezone = $syscfg['timezone'];
    

    if I change this to:

    $timezone = $config['system']['timezone'];
    

    then it happily displays the date/times using the timezone selected on the system.

    I guess that the $syscfg array variable has gone AWOL somewhere along the way - either no longer setup, or no longer in scope of guiconfig.inc

    I can easily submit a pull request in Github for this. But first, does anyone know what happened to $syscfg? That should be sorted out, as there might be other side-effects to be addressed.

    As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
    If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

    1 Reply Last reply Reply Quote 0
    • P
      phil.davis
      last edited by Jun 21, 2012, 10:21 AM

      I couldn't see an obvious change that broke this - I guess it was somewhere in changes to the various require_once calls that were done a while ago. Serching for uses of $syscfg, in other places it is defined and used in the same file.
      I found the $syscfg['timezone'] invalid reference in 3 places. I have submitted a pull request to fix these up.

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received