Merge pull request #280 from LordDot/master

Fix #279 Calendar uses year for today
This commit is contained in:
streetturtle 2021-06-28 15:00:50 -04:00 committed by GitHub
commit a808ead3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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