How to set timezone in Intellij IDEA

Created: 2021-05-28 | 2 min

Quick note on how to set timezone in Intellij IDEA.


#Step 1: Create a simple java project

import java.util.Date;

public class App {

    public static void main(String[] args) {
        System.out.println(new Date());


Run the app (right click on the class > Run App.main), current date and time reflects my timezone in the console (Peru in my case):

Fri May 28 16:38:08 PET 2021

#Step 2: Set timezone in Intellij

Fri May 28 21:43:39 UTC 2021


Tested with: