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]]
|
||||
name = "cal8tor"
|
||||
version = "0.4.4"
|
||||
version = "0.4.5"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"clap",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[package]
|
||||
name = "cal8tor"
|
||||
version = "0.4.4"
|
||||
version = "0.4.5"
|
||||
authors = ["Mylloon"]
|
||||
edition = "2021"
|
||||
description = "Extractor of the calendar of the IT degree of university Paris 8"
|
||||
readme = "README.md"
|
||||
repository = "https://git.kennel.ml/Anri/cal8tor"
|
||||
repository = "https://git.mylloon.fr/Anri/cal8tor"
|
||||
keywords = ["scrape", "calendar"]
|
||||
publish = false
|
||||
license = "AGPL-3.0-or-later"
|
||||
|
|
|
@ -114,7 +114,6 @@ fn anglophonization(date: &str) -> String {
|
|||
fn get_date(date: &str) -> DateTime<Utc> {
|
||||
// Use and keep UTC time, we have the hour set to 12h and
|
||||
// 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")
|
||||
.unwrap()
|
||||
.into()
|
||||
|
|
Reference in a new issue