We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1570d92 commit bbcafc4Copy full SHA for bbcafc4
src/lib.rs
@@ -199,8 +199,8 @@ pub fn parse_datetime_at_date<S: AsRef<str> + Clone>(
199
200
// Parse epoch seconds
201
if let Ok(timestamp) = parse_timestamp(s.as_ref()) {
202
- if let Some(timestamp_date) = NaiveDateTime::from_timestamp_opt(timestamp, 0) {
203
- return Ok(date.offset().from_utc_datetime(×tamp_date));
+ if let Some(timestamp_date) = DateTime::from_timestamp(timestamp, 0) {
+ return Ok(timestamp_date.into());
204
}
205
206
0 commit comments