Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

Cherry-pick of PR #15157 from release/6.5 to dev. The graph connector timer was using incorrect JavaScript Date methods in its cron expression.

Changes

  • File: templates/vsc/ts/graph-connector/src/functions/connections.ts
  • Issue: Used getUTCMonth() (returns 0-11) for day field and getUTCDay() (returns 0-6) for month field
  • Fix: Use getUTCDate() (returns 1-31) for day and getUTCMonth() + 1 (returns 1-12) for month
// Before
const cronExpression = `0 0 0 ${currentDate.getUTCMonth()} ${currentDate.getUTCDay()} *`;

// After  
const cronExpression = `0 0 0 ${currentDate.getUTCDate()} ${currentDate.getUTCMonth() + 1} *`;

This ensures the deployment timer runs on the correct date each year instead of using invalid month/day values.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Cherry-pick] PR #15157 needs to be synchronized to other branches</issue_title>
<issue_description>

Cherry-pick Reminder

@Alive-Fish Hello!

This is an automatically created reminder. Your PR #15157 (fix: cron expression in gc is wrong) is being merged into the release/6.5 branch.

Please ensure to cherry-pick these changes to the following branches:

Steps to Follow:

  1. Wait for the current PR to be merged.
  2. Execute the following commands locally:
    git fetch origin
    git checkout <target_branch>
    git cherry-pick <commit_hash>
    git push origin <target_branch>
  3. Or create a new PR to merge these changes into the above branches.

After completion, please check the items above ✓

Note: This is an automatically created issue. You can close this issue after completing all the operations.
</issue_description>

<agent_instructions>cherry pick the change into dev branch only.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Cherry pick changes from PR #15157 to other branches Cherry-pick PR #15157: Fix cron expression using wrong Date methods Jan 16, 2026
Copilot AI requested a review from Alive-Fish January 16, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Cherry-pick] PR #15157 needs to be synchronized to other branches

2 participants