Skip to content

Wrong LocalDateTime #25

@mulimoen

Description

@mulimoen

Using this crate gives a difference of two hours between the true time (also given by chrono) and real local time.

fn main() {
    println!("datetime: {:?}", datetime::LocalDateTime::now());
    println!("chrono: {}", chrono::Local::now());
}

datetime: LocalDateTime(2019-10-05T09:06:49.-17459)
chrono: 2019-10-05 11:06:49.310240511 +02:00

Metadata

Metadata

Assignees

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