summaryrefslogtreecommitdiff
path: root/calendar-widget
diff options
context:
space:
mode:
authorLordDot <34166725+LordDot@users.noreply.github.com>2021-06-26 14:32:20 +0200
committerGitHub <noreply@github.com>2021-06-26 14:32:20 +0200
commit7bb5c8cdfa8bd8cbf888e2be3cae542cf3d62b51 (patch)
tree2587657dcc8d9e4ce6bc4f924fcd008de4e3c3c6 /calendar-widget
parent1b7909485eb5751d88402d8216fdb9ccee74884b (diff)
Fix #279 Calendar uses year for today
Diffstat (limited to 'calendar-widget')
-rw-r--r--calendar-widget/calendar.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar-widget/calendar.lua b/calendar-widget/calendar.lua
index b39b563..81c28a9 100644
--- a/calendar-widget/calendar.lua
+++ b/calendar-widget/calendar.lua
@@ -142,7 +142,7 @@ local function worker(user_args)
-- highlight only today's day
if flag == 'focus' then
local today = os.date('*t')
- if today.month ~= date.month then
+ if not (today.month == date.month and today.year == date.year) then
flag = 'normal'
end
end