Skip to content

Commit

Permalink
Implement SwiftDate/malcommac#776
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Spencer committed Apr 11, 2024
1 parent 45b3b76 commit e3f79cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftDate/DateInRegion/DateInRegion+Create.swift
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public extension DateInRegion {
///
func dateBySet(_ components: [Calendar.Component: Int?]) -> DateInRegion? {
var dateComponents = DateComponents()
dateComponents.era = (components[.era] ?? era)
dateComponents.year = (components[.year] ?? year)
dateComponents.month = (components[.month] ?? month)
dateComponents.day = (components[.day] ?? day)
Expand Down

0 comments on commit e3f79cb

Please sign in to comment.