Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-orchestrator fusiondirectory-orchestrator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 20
    • Issues 20
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-orchestratorfusiondirectory-orchestrator
  • Issues
  • #42
Closed
Open
Issue created Mar 29, 2024 by dockx thibault@tdockxMaintainer

[Orchestrator] - taskGateway compare lastExec in UTC format with a variable now - set without arg, taking local time instead

We must change line 309 of tastGateway to be sure to generate a now time in UTC. We could have used Unix timestamp (always generated in UTC) but dateTime object are easy to use.

Let's change line 309

      // Is used to verify cyclic schedule with date format.
      $now = new DateTime();

with

$now = new DateTime('now', new DateTimeZone('UTC'));

Edited Mar 29, 2024 by dockx thibault
Assignee
Assign to
Time tracking