How to change TimeZone of your linux game server?


Staff member
If thetime chat command in game is showing wrong date time, that means your server timezone is not correct. The sourcemod chat trigger thetime retrieves timezone information from the host (Operating System) where the server is running. So, in order to change timezone of game server, you will have to change timezone of the linux server or operating system. By default timezone is set to UTC (Universal Time Zone) on most of the linux VPS.

To change timezone on Linux, follow below commands (Make sure you have sudo privileges):
# Shows current date/time and timezone information

# List all the timezones known to the system
timedatectl list-timezones 

# Change timezone
# Below command will change the timezone to Asia/Kolkata or IST (Indian Standard Time), make sure to use whatever is your server timezone, from the list by above command
rm /etc/localtime
cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

# Then check the current datetime and timezone again



i am happy of approval my username

it is LOUIS :)))))))))))))))))))))))))))))
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock