/
Setting Local Time for your Server
Setting Local Time for your Server
os.date() will format in local time. For windows you can configure local time in the control panel. For Linux a typical process might look like this. You can use the timedatectl command to list time zones and grep for your city:
timedatectl list-timezones | grep Toronto
Then set the time zone like so:
sudo timedatectl set-timezone America/Toronto
And confirm you have the right timezone set with this:
timedatectl
You will mostly likely need to restart your Iguana server to pick up the new local time.