Skip to content

Parsing Bug #1608

@alirezabeygi803

Description

@alirezabeygi803

I am trying to run the following Code on a Windows 11 machine, latest chrono version, latest Rust version, but it fails with the error mentioned below:

let date = "Thu Feb 21 23:30:39 2012";
    let date = DateTime::parse_from_str(date, "%a %b %d %H:%M:%S %Y");

    if let Ok(x) = date {
        dbg!(&x);
    } else if let Err(x) = date {
        dbg!(&x);
    }
[src/main.rs:179:9] &x = ParseError(
    Invalid,
)

Am I doing something wrong or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions