Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
a56103d4c7 | |||
79cc041251 | |||
c9262519c3 |
3 changed files with 3 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -160,7 +160,7 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cal8tor"
|
name = "cal8tor"
|
||||||
version = "0.4.4"
|
version = "0.4.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "cal8tor"
|
name = "cal8tor"
|
||||||
version = "0.4.4"
|
version = "0.4.5"
|
||||||
authors = ["Mylloon"]
|
authors = ["Mylloon"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Extractor of the calendar of the IT degree of university Paris 8"
|
description = "Extractor of the calendar of the IT degree of university Paris 8"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://git.kennel.ml/Anri/cal8tor"
|
repository = "https://git.mylloon.fr/Anri/cal8tor"
|
||||||
keywords = ["scrape", "calendar"]
|
keywords = ["scrape", "calendar"]
|
||||||
publish = false
|
publish = false
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
|
|
|
@ -114,7 +114,6 @@ fn anglophonization(date: &str) -> String {
|
||||||
fn get_date(date: &str) -> DateTime<Utc> {
|
fn get_date(date: &str) -> DateTime<Utc> {
|
||||||
// Use and keep UTC time, we have the hour set to 12h and
|
// Use and keep UTC time, we have the hour set to 12h and
|
||||||
// Paris 8 is in France so there is no problems
|
// Paris 8 is in France so there is no problems
|
||||||
eprintln!("-> {}", &anglophonization(date));
|
|
||||||
DateTime::parse_from_str(&anglophonization(date), "%e %B %Y %H:%M %z")
|
DateTime::parse_from_str(&anglophonization(date), "%e %B %Y %H:%M %z")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.into()
|
.into()
|
||||||
|
|
Reference in a new issue