From 7bb5c8cdfa8bd8cbf888e2be3cae542cf3d62b51 Mon Sep 17 00:00:00 2001 From: LordDot <34166725+LordDot@users.noreply.github.com> Date: Sat, 26 Jun 2021 14:32:20 +0200 Subject: Fix #279 Calendar uses year for today --- calendar-widget/calendar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar-widget/calendar.lua') 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 -- cgit v1.2.3