Skip to content

Commit 42fe537

Browse files
committed
Tweaked the mkrelease script to always apply changelog note timestamps in UTC.
- Legacy-Id: 8479
1 parent 1d02752 commit 42fe537

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/mkrelease

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ note "$changes"
176176
contributors=$(echo "$changes" | sed 's/\.[ \t\n]/ /'| tr -c "a-z0-9.@-" "\n" | sort | uniq | grep '@' | sed -r -e 's/^\.+//' -e 's/\.+$//' -e 's/^/-c /' || true)
177177

178178
note "Set the current time on the release notes in the changelog file"
179-
sed -r -i -e "1,/^ -- /s/([A-Za-z-]+ <[a-z0-9.-]+@[a-z0-9.-]+> ).*$/\1$(date +'%d %b %Y %H:%M:%S %z')/" changelog
179+
sed -r -i -e "1,/^ -- /s/([A-Za-z-]+ <[a-z0-9.-]+@[a-z0-9.-]+> ).*$/\1$(TZ=UTC date +'%d %b %Y %H:%M:%S %z')/" changelog
180180
note " $(grep -m1 "^ -- " changelog)"
181181

182182
note "Verifying that version $VER doesn't already exist..."

0 commit comments

Comments
 (0)