How to set JAVA_HOME in Mac OS X High Sierra

This post describes how to configure the JAVA_HOME environment variable required by many enterprise tools, frameworks, and CMSes. For instance, Liferay, Tomcat, etc. will use this variable to work properly. In case you have changed your default shell (Bash) that comes with OS X out-of-the-box, please read How to set JAVA_HOME in Mac OS X High…

How to get the timezone in Ubuntu Linux?

If you are using a GNU/Linux distribution based on Ubuntu the easiest way to get the timezone is by using following command: timedatectl The output should look similar to this: Local time: Tue 2018-07-24 11:27:00 CDT Universal time: Tue 2018-07-24 16:27:00 UTC RTC time: n/a Time zone: America/Mexico_City (CDT, -0500) Network time on: yes NTP…

How to get MySQL time zone?

Under certain circumstances it is relevant to know the timezone in which your date is being stored in a Relational Database System, for example MySQL. One of the easiest ways to know is just by running following command: Step 1. Login to MySQL mysql -u root -p Step 2. Run a “select” query to get…