diff --git a/backend/Cargo.lock b/backend/Cargo.lock index c49d2f02..058ea274 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -172,9 +172,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.22" +version = "0.4.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1" +checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" dependencies = [ "iana-time-zone", "js-sys", diff --git a/backend/seed_data/Cargo.toml b/backend/seed_data/Cargo.toml index 2d783814..1daa0055 100644 --- a/backend/seed_data/Cargo.toml +++ b/backend/seed_data/Cargo.toml @@ -8,5 +8,5 @@ edition = "2021" [dependencies] server = { path="../server" } diesel = "1.4.8" -chrono = "0.4.22" +chrono = "0.4.23" dotenv = "0.15.0" diff --git a/backend/seed_data/src/seed.rs b/backend/seed_data/src/seed.rs index a4e0edd1..af920355 100644 --- a/backend/seed_data/src/seed.rs +++ b/backend/seed_data/src/seed.rs @@ -140,8 +140,8 @@ pub fn seed() { name: "2022 Peer Mentor Recruitment".to_string(), description: "Peer mentors are an important part of CSESoc and university life at UNSW. We are looking for enthusiastic students who are passionate about helping first-year students, gaining leadership experience, communication skills, some resume-worthy additions, and having a lot of fun in the upcoming term (Term 1, 2022)! 🎉".to_string(), organisation_id: csesoc_org.id, - starts_at: NaiveDate::from_ymd(2022, 1, 1).and_hms(10, 00, 00), - ends_at: NaiveDate::from_ymd(2022, 2, 20).and_hms(23, 59, 59), + starts_at: NaiveDate::from_ymd_opt(2022, 1, 1).unwrap().and_hms_opt(10, 00, 00).unwrap(), + ends_at: NaiveDate::from_ymd_opt(2022, 2, 20).unwrap().and_hms_opt(23, 59, 59).unwrap(), cover_image: Some(std::fs::read("./assets/csesoc_peer_mentoring.jpg").unwrap()), published: true, }.insert(&connection).expect("failed to insert new campaign");