Skip to content

Migrate off deprecated chrono interfaces #107

@nickgarfield

Description

@nickgarfield

When building, we get a few of these warnings. Let's migrate from from_timestamp() to from_timestamp_opt().

warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `from_timestamp_opt()` instead
   --> src/state/thread.rs:557:28
    |
557 |             NaiveDateTime::from_timestamp(after, 0),
    |                            ^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions