Skip to content

Commit

Permalink
Merge pull request #294 from mkowalski87/master
Browse files Browse the repository at this point in the history
  • Loading branch information
kvyatkovskys committed Nov 4, 2022
2 parents 4990b07 + 0f460cb commit 672ad65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KVKCalendar/MonthHeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class MonthHeaderView: UICollectionReusableView {

dateLabel.font = style.month.fontTitleHeader
dateLabel.text = date.titleForLocale(style.locale, formatter: style.month.shortInDayMonthFormatter).capitalized
if Date().kvkMonth == date.kvkMonth {
if Date().kvkMonth == date.kvkMonth && Date().kvkYear == date.kvkYear {
dateLabel.textColor = style.month.colorTitleCurrentDate
} else {
dateLabel.textColor = style.month.colorTitleHeader
Expand Down

0 comments on commit 672ad65

Please sign in to comment.