Skip to content

Commit

Permalink
Bump version after fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patchthecode committed Feb 28, 2017
1 parent 41de127 commit 8dd38bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion JTAppleCalendar.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "JTAppleCalendar"
s.version = "6.1.3"
s.version = "6.1.4"
s.summary = "The Unofficial Swift Apple Calendar Library. View. Control. for iOS & tvOS"
s.description = <<-DESC
A highly configurable Apple calendar control. Contains features like boundary dates, month and week view. Very light weight.
Expand Down
6 changes: 3 additions & 3 deletions Sources/GlobalFunctionsAndExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ extension Calendar {
func endOfMonth(for date: Date) -> Date? {
guard
let comp = dateFormatterComponents(from: date),
let day = self.range(of: .day, in: .month, for: date)?.count else {
let day = self.range(of: .day, in: .month, for: date)?.count,
let retVal = Calendar.formatter.date(from: "\(comp.year) \(comp.month) \(day)") else {
return nil
}

return Calendar.formatter.date(from: "\(comp.year) \(comp.month) \(day)")
return retVal
}

private func dateFormatterComponents(from date: Date) -> (month: Int, year: Int)? {
Expand Down

0 comments on commit 8dd38bc

Please sign in to comment.