Strange timezone behavior

I run the following Java code:

TimeZone tz1 = TimeZone.getTimeZone("Etc/GMT-3");
System.out.println(tz1.getDisplayName());

Display GMT+03:00!

It seems that when we use time intervals with identifiers such as Etc/GMTxx, the sign changes to the opposite. What for?

+5
source share
1 answer

This is the ETC style:

http://en.wikipedia.org/wiki/Zoneinfo

"Etc" , "Etc/UTC", . POSIX, , "Etc/GMT", , , . GMT , (, "Etc/GMT-14" 14 / GMT.)

+6

All Articles