diff --git a/lua/pending/parse.lua b/lua/pending/parse.lua index dfe9206..b72214f 100644 --- a/lua/pending/parse.lua +++ b/lua/pending/parse.lua @@ -21,7 +21,7 @@ local function is_valid_date(s) return false end local t = os.time({ year = y, month = m, day = d }) - local check = os.date('*t', t) + local check = os.date('*t', t) --[[@as osdate]] return check.year == y and check.month == m and check.day == d end @@ -44,7 +44,7 @@ local weekday_map = { ---@return string|nil function M.resolve_date(text) local lower = text:lower() - local today = os.date('*t') + local today = os.date('*t') --[[@as osdate]] if lower == 'today' then return os.date('%Y-%m-%d', os.time({ year = today.year, month = today.month, day = today.day })) --[[@as string]]