Does any one know how to get a timezone time
I used os.Date(’%d.%m.%Y - %X’) but it give the device timezone, I need it to be a timezone that I can choose from config.lua like Config.serverTimezone = “GMT+4”
You could do something like this:
local timezone = 4 -- This would be GMT+4 local date = os.date("%d.%m.%Y - %X", os.time() + timezone * 60 * 60) print(date)
The code for this was taken from here and then slightly modified:
Most questions can be answered by a quick google search!