Skip to content

Commit f51231d

Browse files
committed
fix: use UTC timezone when formatting dates in release calendar script
1 parent ad6e1f8 commit f51231d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update-release-calendar.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CALENDAR_END_MARKER="<!-- RELEASE_CALENDAR_END -->"
1313

1414
# Format date as "Month DD, YYYY"
1515
format_date() {
16-
date -d "$1" +"%B %d, %Y"
16+
TZ=UTC date -d "$1" +"%B %d, %Y"
1717
}
1818

1919
get_latest_patch() {
@@ -74,7 +74,7 @@ get_release_date() {
7474
echo ""
7575
else
7676
# Extract date in YYYY-MM-DD format
77-
date -d "$tag_date" +"%Y-%m-%d"
77+
TZ=UTC date -d "$tag_date" +"%Y-%m-%d"
7878
fi
7979
}
8080

0 commit comments

Comments
 (0)