What is the rationale behind Apple using Etc/GMT timezone when they return the receipt from the App Store for auto-renewable subscriptions.
What exactly is the Etc/GMT time zone? Does the Java SDK understand this time zone? Or do I have to use other third-party libraries like Joda-Time?
Etc/GMT is not strictly the same thing as UTC or GMT. They represent the same instant in time only when the offset is 0. In all other cases, they are quite different.
Apple explains the designation here.
A quote directly from the link gives an example:
Etc/GMT
is just a standard way of sayingUTC
,GMT
,GMT0
orGMT+00:00
.The Java JDK understands all of the formats. You can easily see this in action by doing the following:
This will print out all the different
TimeZone
formats that your Java JDK can parse: