Skip to content

time: unexpected behavior for time.AddDate() #13790

@toxeus

Description

@toxeus

It seems like time.AddDate() is not correctly handling the number of days per month. This sometimes leads to unexpected behavior for time.AddDate() that can be best illustrated with a short code snippet:
http://play.golang.org/p/BS3tHHRxoA

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions