Compare commits
No commits in common. "main" and "0.4.4" have entirely different histories.
3 changed files with 4 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -160,7 +160,7 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223"
|
|||
|
||||
[[package]]
|
||||
name = "cal8tor"
|
||||
version = "0.4.5"
|
||||
version = "0.4.4"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"clap",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[package]
|
||||
name = "cal8tor"
|
||||
version = "0.4.5"
|
||||
version = "0.4.4"
|
||||
authors = ["Mylloon"]
|
||||
edition = "2021"
|
||||
description = "Extractor of the calendar of the IT degree of university Paris 8"
|
||||
readme = "README.md"
|
||||
repository = "https://git.mylloon.fr/Anri/cal8tor"
|
||||
repository = "https://git.kennel.ml/Anri/cal8tor"
|
||||
keywords = ["scrape", "calendar"]
|
||||
publish = false
|
||||
license = "AGPL-3.0-or-later"
|
||||
|
|
|
@ -114,6 +114,7 @@ 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