Skip to content

Commit dab3771

Browse files
committed
update time dependency in build-script
1 parent 1dd2aee commit dab3771

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

Cargo.lock

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ mockito = "0.29"
113113
test-case = "1.2.0"
114114

115115
[build-dependencies]
116-
time = "0.1"
116+
time = "0.3"
117117
git2 = { version = "0.13", default-features = false }
118118
sass-rs = "0.2.2"
119119
string_cache_codegen = "0.5.1"

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn write_git_version() {
1313
let maybe_hash = get_git_hash();
1414
let git_hash = maybe_hash.as_deref().unwrap_or("???????");
1515

16-
let build_date = time::strftime("%Y-%m-%d", &time::now_utc()).unwrap();
16+
let build_date = time::OffsetDateTime::now_utc().date();
1717
let dest_path = Path::new(&env::var("OUT_DIR").unwrap()).join("git_version");
1818

1919
let mut file = File::create(&dest_path).unwrap();

0 commit comments

Comments
 (0)