feat: formmatting is being deprecated

This commit is contained in:
Aravinth Manivannan 2023-01-26 20:55:04 +05:30
parent e1b8836732
commit e9709ed744
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -28,8 +28,13 @@ fn main() {
let git_hash = String::from_utf8(output.stdout).unwrap();
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
let now = OffsetDateTime::now_utc().format("%y-%m-%d");
println!("cargo:rustc-env=COMPILED_DATE={}", &now);
let now = OffsetDateTime::now_utc();
println!(
"cargo:rustc-env=COMPILED_DATE={}-{}-{}",
now.year(),
now.month(),
now.day()
);
cache_bust();
}