Skip to content

Commit

Permalink
ci(.github): resolve due_on UTC time creation issues (microsoft#31890)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell authored Jul 1, 2024
1 parent 8bb3774 commit 114f774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/create-milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
quarter=$(date +"%q")
year=$(date +"%Y")
title="${month} Project Cycle Q${quarter} ${year}"
due_on=$(date -d "$(date -d "next month" +%Y-%m-01) -1 day" +"%Y-%m-%dT%H:%M:%S%z")
due_on=$(date -u -d "$(date -d "next month" +%Y-%m-01) -1 day" +"%Y-%m-%dT%H:%M:%SZ")
echo "Using title '${title}' and setting due date: '${due_on}'"
gh api --method POST repos/microsoft/fluentui/milestones -f title="${title}" -f due_on="${due_on}"
env:
Expand Down

0 comments on commit 114f774

Please sign in to comment.