• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • R

      cron-style scheduled task starts on UTC, not local time

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved FOG Problems
      3
      0 Votes
      3 Posts
      4 Views
      R

      @Tom-Elliott Thank you for pointing me in the right direction. I’ve corrected it for myself, but after looking around in the PHP code, I’d like to ponder a change in defaults/settings priority.

      Right now the FOG timezone selection logic is: If php.ini specifies a timezone (and PHP 8.2 appears to “specify” UTC if there’s nothing explicitly set in php.ini), then use that timezone. Ie, FOG will always use UTC or what is specified in php.ini, and FOG will never use $fogsettings[4].

      I propose (only if my above analysis is correct) that we flip the priority logic to favor $fogsettings[4] timezone setting.

      fogcore.class.php::setEnv() existing logic:

      $defTz = ini_get('date.timezone'); if (empty($defTz)) { if (empty($fog_settings[4])) { $GLOBALS['TimeZone'] = 'UTC'; } else { $GLOBALS['TimeZone'] = $fog_settings[4]; } } else { $GLOBALS['TimeZone'] = $defTz; }

      Proposed logic:

      $defTz = ini_get('date.timezone'); if (empty($fog_settings[4])) { if (empty($defTz)) { $GLOBALS['TimeZone'] = 'UTC'; } else { $GLOBALS['TimeZone'] = $defTz; } } else { $GLOBALS['TimeZone'] = $fog_settings[4]; }
    • F

      Wrong target device

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved FOG Problems
      9
      0 Votes
      9 Posts
      134 Views
      F

      Thank you very much for the detailed explanation of the problem and for adjusting the code.
      I’m not on the dev branch yet, but I’ll make sure to switch and use debug mode to trace the function.
      It’s likely that the tip about using the serial number as the Primary Host Disk will need to be incorporated into my process.

      At the moment, I have a large number of Windows 11 reinstallations to handle due to the end of support, so it will probably be a few weeks before I have time for this.
      I’ll post an update in this thread once I get to it.

    • 1 / 1