summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2021-06-28 15:00:50 -0400
committerGitHub <noreply@github.com>2021-06-28 15:00:50 -0400
commita808ead3c74d57a7ccdb7f9e55cfa10a136d488c (patch)
tree2587657dcc8d9e4ce6bc4f924fcd008de4e3c3c6
parent1b7909485eb5751d88402d8216fdb9ccee74884b (diff)
parent7bb5c8cdfa8bd8cbf888e2be3cae542cf3d62b51 (diff)
Merge pull request #280 from LordDot/master
Fix #279 Calendar uses year for today
-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