Os.date errors when called

so I keep trying to call os.date, but it keeps erroring, giving me some nonsense as usual, like:

tried to call nil value or something

In the meantime, I made an os.date function replica that you can use until this bug gets fixed, or if you want to get dates from times before 1970: http://devforum.roblox.com/t/os-date-replica-as-far-as-i-cared-to-code/30395

1 Like

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.