I want to achieve a system that gives the gui text the time for 1 month/year, the issue is that it does not give the text the time, i’ve used multiple calculators and even calculated it myself the seconds on how much a month/year has, but everytime i try to do: os.date('%c',os.time()+timenumber)
it does not give me the exact time on how it would be in one month (date time and etc the same just in one month/year), when you select the time via textbutton it saves the time into a separate table from where the gui can access it:
Time table:
local TimeTable = {
OneDay = 86400,
OneWeek = 604800,
OneMonth = 2628000,
OneYear = 31540000
}
DataTable :
local DataTable = {
Thumbnail = "asdasdasd",
Username = "asdasdasda",
TempBanLength = TimeTable.OneDay
}
The way it works is if you press continue on the gui, it will put the TempBanLength from the DataTable into the gui text (the gui also has a button which will change the amount on how long the ban would be), like this:
TextLabel.Text = "Banned until:\n"..os.date("%c",os.time()+DataTable.TempBanLength)
And as stated, the problem is that it does not give me the exact time, as seen here:
I don't know what to do anymore.