Here you can find the source of getTimeZone()
public static TimeZone getTimeZone()
//package com.java2s; //License from project: Open Source License import java.util.TimeZone; public class Main { /**//from w w w .j av a2 s . co m * get default SimpleTimeZone (System Properties) * @return SimpleTimeZone */ public static TimeZone getTimeZone() { return TimeZone.getDefault(); } }