Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Commit 40b5a72

Browse files
authored
Merge pull request #27 from SimonSapin/patch-1
Align dates in rustup toolchains with those in `rustc -V`
2 parents 78b1ce7 + 0932671 commit 40b5a72

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

promote-release/src/main.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ fn main() {
4444
release: env::args().nth(2).unwrap(),
4545
secrets: t!(secrets.parse()),
4646
handle: Easy::new(),
47-
date: output(Command::new("date").arg("+%Y-%m-%d")).trim().to_string(),
47+
// For Nightly, this is running soon after midnight
48+
// so the date of 10 minutes ago is yesterday,
49+
// which likely matches the commit date of the latest commit on the master branch:
50+
// https://github.com/rust-lang/rust-central-station/pull/27
51+
date: output(Command::new("date").arg("--date=10 minutes ago").arg("+%Y-%m-%d"))
52+
.trim().to_string(),
4853
current_version: None,
4954
}.run()
5055
}

0 commit comments

Comments
 (0)