forked from mirrors/jj
cargo: upgrade chrono from 0.4.34 to 0.4.35
This commit is contained in:
parent
6626c93d38
commit
1ee6b595a8
2 changed files with 3 additions and 3 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -320,9 +320,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|||
|
||||
[[package]]
|
||||
name = "chrono"
|
||||
version = "0.4.34"
|
||||
version = "0.4.35"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b"
|
||||
checksum = "8eaf5903dcbc0a39312feb77df2ff4c76387d591b9fc7b04a238dcf8bb62639a"
|
||||
dependencies = [
|
||||
"android-tzdata",
|
||||
"iana-time-zone",
|
||||
|
|
|
@ -102,7 +102,7 @@ impl TestEnvironment {
|
|||
*command_number += 1;
|
||||
cmd.env("JJ_RANDOMNESS_SEED", command_number.to_string());
|
||||
let timestamp = chrono::DateTime::parse_from_rfc3339("2001-02-03T04:05:06+07:00").unwrap();
|
||||
let timestamp = timestamp + chrono::Duration::seconds(*command_number);
|
||||
let timestamp = timestamp + chrono::Duration::try_seconds(*command_number).unwrap();
|
||||
cmd.env("JJ_TIMESTAMP", timestamp.to_rfc3339());
|
||||
cmd.env("JJ_OP_TIMESTAMP", timestamp.to_rfc3339());
|
||||
|
||||
|
|
Loading…
Reference in a new issue