Skip to content

Commit

Permalink
fix(deps): update rust crate chrono to 0.4.23 (#352)
Browse files Browse the repository at this point in the history
* fix(deps): update rust crate chrono to 0.4.23

* refactor(seed): use _opt NaiveDate methods

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Vo <[email protected]>
  • Loading branch information
renovate[bot] and zax-xyz authored Nov 13, 2022
1 parent 530d6c0 commit 6be66ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/seed_data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions backend/seed_data/src/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 6be66ca

Please sign in to comment.