Skip to content

Wrong time when using dateAt(.startOfMonth) #745

@mligor

Description

@mligor

return dateBySet([.day: 1, .hour: 1, .minute: 1, .second: 1, .nanosecond: 1])!

When dateAt(.startOfMonth) is used, you will get e.g. 1.08.2020 01:01:01, what is not start of the month. Time should be set to 00:00:00

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions