Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Paul van Tilburg | c61bbfef5b | |
Paul van Tilburg | f3ff02e4ff | |
Paul van Tilburg | f2be089fb9 | |
Paul van Tilburg | 45b3f52e71 |
17
CHANGELOG.md
17
CHANGELOG.md
|
@ -7,13 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.3.2]
|
||||
## [0.3.3] - 2023-11-03
|
||||
|
||||
### Security
|
||||
|
||||
* Updated dependencies ([RUSTSEC-2020-0071](https://rustsec.org/advisories/RUSTSEC-2020-0071.html))
|
||||
|
||||
### Changed
|
||||
|
||||
* Switch to Rocket 0.5 RC4
|
||||
|
||||
## [0.3.2] - 2023-08-27
|
||||
|
||||
### Fixed
|
||||
|
||||
* Switch to Debian bookworm Docker image for runtime; fixes Docker image
|
||||
|
||||
## [0.3.1]
|
||||
## [0.3.1] - 2023-08-26
|
||||
|
||||
### Changed
|
||||
|
||||
|
@ -97,7 +107,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
Rename Autarco Scraper project to Solar Grabber.
|
||||
|
||||
[Unreleased]: https://git.luon.net/paul/solar-grabber/compare/v0.3.2...HEAD
|
||||
[Unreleased]: https://git.luon.net/paul/solar-grabber/compare/v0.3.3...HEAD
|
||||
[0.3.3]: https://git.luon.net/paul/solar-grabber/compare/v0.3.2...v0.3.3
|
||||
[0.3.2]: https://git.luon.net/paul/solar-grabber/compare/v0.3.1...v0.3.2
|
||||
[0.3.1]: https://git.luon.net/paul/solar-grabber/compare/v0.3.0...v0.3.1
|
||||
[0.3.0]: https://git.luon.net/paul/solar-grabber/compare/v0.2.2...v0.3.0
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "solar-grabber"
|
||||
version = "0.3.2"
|
||||
version = "0.3.3"
|
||||
authors = ["Paul van Tilburg <paul@luon.net>"]
|
||||
edition = "2021"
|
||||
description = """"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
use std::sync::Arc;
|
||||
|
||||
use chrono::{DateTime, Local, TimeZone};
|
||||
use chrono::{DateTime, Local, NaiveDateTime, TimeZone};
|
||||
use md5::{Digest, Md5};
|
||||
use reqwest::{cookie::Jar as CookieJar, Client, ClientBuilder, Url};
|
||||
use rocket::{
|
||||
|
@ -133,9 +133,12 @@ where
|
|||
use rocket::serde::de::Error;
|
||||
|
||||
let s = <&str>::deserialize(deserializer)?;
|
||||
let dt = NaiveDateTime::parse_from_str(s, DATE_TIME_FORMAT).map_err(D::Error::custom)?;
|
||||
|
||||
Local
|
||||
.datetime_from_str(s, DATE_TIME_FORMAT)
|
||||
.map_err(D::Error::custom)
|
||||
.from_local_datetime(&dt)
|
||||
.latest()
|
||||
.ok_or_else(|| D::Error::custom("time representation is invalid for server time zone"))
|
||||
}
|
||||
|
||||
/// Deserializes a string ([`&str`]) into a float ([`f32`]).
|
||||
|
|
Loading…
Reference in New Issue