It is a normal situation that the server, client, and database have different timezones.
In this blog, I will introduce my coding practice to handle multiply timezones in software development.
Check the timezone setting of the current machine
Method 1: use the date command and check the timezone part (JST