21.03.2022, 10:11
You can simply add +1 to day number, convert to timestamp, then get a date from that timestamp. It handles year/month wrap-around automatically.
Code:
date = os.date('*t') -- current date (table)
date.day = date.day + 1 -- add 1 day
time = os.time(date) -- convert to timestamp
date = os.date('*t', time) -- tomorrow date (table) from timestamp
log(date)