Skip to content

localtime reports the wrong day on leap years #469

@TheMiningTeamYT

Description

@TheMiningTeamYT

On leap years, if you use localtime, tm_mday from the returned struct will be 1 too high until March 1st.
Here's my code:
time.tar.gz

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions