Programmers should never ever write their own time/date service. In this case it’s unavoidable, but it goes to show that we really need packaged-in functionality to handle this for us.
os.date already provides this. It allows us to take UNIX time and extract month, day, year, hour, minute, and second as-is and saving us the trouble from worrying about leap days, and other miscellaneous trouble. I’m puzzled why this isn’t enabled already especially given that we have os.time, and needless to say this should finally be added to ROBLOX.